|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQRequest
This interface provides basic information about an http request.
An instance of this interface is available to the script via aqua.request alias.
Method Summary | |
---|---|
Cookie[] |
getCookies()
Returns an array containing all of the Cookie objects the client sent with this request. |
String |
getHeader(String name)
Returns the value of the specified request header as a String. |
String[] |
getHeaderNames()
Returns string array of all the header names this request contains. |
String[] |
getHeaders(String name)
Returns all the values of the specified request header as a String array. |
Locale[] |
getLocales()
Returns an array of Locale objects indicating, in decreasing order starting with the preferred locale, the locales that are acceptable to the client based on the Accept-Language header. |
String |
getMethod()
Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT. |
String |
getParameter(String name)
Returns value of the given request parameter, or null if the parameter is not found. |
String |
getParameter(String name,
String defaultValue)
Returns value of the given request parameter, or the defaultValue specified if parameter is not found. |
Enumeration |
getParameterNames()
Returns an Enumeration of String objects containing the names of the parameters contained in this request. |
String[] |
getParameterValues(String name)
Returns an array of String objects containing all of the values the given request parameter has, or null if the parameter does not exist. |
String |
getRemoteAddr()
Returns the Internet Protocol (IP) address of the client or last proxy that sent the request. |
String |
getRemoteHost()
Returns the fully qualified name of the client or the last proxy that sent the request. |
String |
getRequestURI()
Returns the part of this request's URL excluding protocol, host name and the part of the query string after '?' character, for the purpose of constructing relative links. |
AQSession |
getSession()
Returns the current session associated with this request, or if the request does not have a session, creates one. |
Method Detail |
---|
String getMethod()
String getRequestURI()
String getParameter(String name)
name
- Parameter name.String getParameter(String name, String defaultValue)
name
- Parameter name.defaultValue
- Default value.Enumeration getParameterNames()
String[] getParameterValues(String name)
name
- Parameter name.Locale[] getLocales()
AQSession getSession()
String getRemoteAddr()
String getRemoteHost()
String getHeader(String name)
name
- a String specifying the header name
String[] getHeaders(String name)
name
- a String specifying the header name
String[] getHeaderNames()
Cookie[] getCookies()
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |