| |
|
| org.apache.openejb.webadmin.HttpRequest
All known Subclasses: org.apache.openejb.webadmin.httpd.HttpRequestImpl,
CONNECT | final public static int CONNECT(Code) | | the HTTP CONNECT type
|
DELETE | final public static int DELETE(Code) | | the HTTP DELETE type
|
GET | final public static int GET(Code) | | the HTTP GET type
|
HEAD | final public static int HEAD(Code) | | the HTTP HEAD type
|
HEADER_ACCEPT | final public static String HEADER_ACCEPT(Code) | | the Accept header
|
HEADER_ACCEPT_ENCODING | final public static String HEADER_ACCEPT_ENCODING(Code) | | the Accept-Encoding header
|
HEADER_ACCEPT_LANGUAGE | final public static String HEADER_ACCEPT_LANGUAGE(Code) | | the Accept-Language header
|
HEADER_CACHE_CONTROL | final public static String HEADER_CACHE_CONTROL(Code) | | the Cache-Control header
|
HEADER_CONNECTION | final public static String HEADER_CONNECTION(Code) | | the Connection header
|
HEADER_CONTENT_LENGTH | final public static String HEADER_CONTENT_LENGTH(Code) | | the Content-Length header
|
HEADER_CONTENT_TYPE | final public static String HEADER_CONTENT_TYPE(Code) | | the Content-Type header
|
HEADER_COOKIE | final public static String HEADER_COOKIE(Code) | | the Cookie header
|
HEADER_HOST | final public static String HEADER_HOST(Code) | | the Host header
|
HEADER_SET_COOKIE | final public static String HEADER_SET_COOKIE(Code) | | the Set-Cookie header
|
HEADER_USER_AGENT | final public static String HEADER_USER_AGENT(Code) | | the User-Agent header
|
OPTIONS | final public static int OPTIONS(Code) | | the HTTP OPTIONS type
|
POST | final public static int POST(Code) | | the HTTP POST type
|
PUT | final public static int PUT(Code) | | the HTTP PUT type
|
TRACE | final public static int TRACE(Code) | | the HTTP TRACE type
|
UNSUPPORTED | final public static int UNSUPPORTED(Code) | | the HTTP UNSUPPORTED type
|
getFormParameter | public String getFormParameter(String name)(Code) | | Gets a form parameter based on the name passed in.
Parameters: name - The name of the form parameter to get The value of the parameter |
getFormParameters | public String[][] getFormParameters()(Code) | | Gets all the form parameters in the form of a two-dimentional array
The second dimention has two indexes which contain the key and value
for example:
for(int i=0; i
All values are strings
All the form parameters |
getHeader | public String getHeader(String name)(Code) | | Gets a header based the header name passed in.
Parameters: name - The name of the header to get The value of the header |
getMethod | public int getMethod()(Code) | | Gets an integer value of the request method. These values are:
OPTIONS = 0
GET = 1
HEAD = 2
POST = 3
PUT = 4
DELETE = 5
TRACE = 6
CONNECT = 7
UNSUPPORTED = 8
The integer value of the method |
getQueryParameter | public String getQueryParameter(String name)(Code) | | Gets a URL (or query) parameter based on the name passed in.
Parameters: name - The name of the URL (or query) parameter The value of the URL (or query) parameter |
getSession | public HttpSession getSession(boolean create)(Code) | | Returns the current HttpSession associated with this
request or, if there is no current session and create is
true, returns a new session.
If create is false and the request has no
valid HttpSession , this method returns null .
Parameters: create - true to create a new session for this requestif necessary; false to return null if there'sno current session the HttpSession associated with this request ornull if create is false and therequest has no valid session See Also: HttpRequest.getSession() |
getSession | public HttpSession getSession()(Code) | | Returns the current session associated with this request, or if the
request does not have a session, creates one.
the HttpSession associated with this request See Also: HttpRequest.getSession(boolean) |
|
|
|