| |
|
| java.lang.Object org.apache.openejb.webadmin.httpd.HttpRequestImpl
HttpRequestImpl | public class HttpRequestImpl implements HttpRequest(Code) | | A class to take care of HTTP Requests. It parses headers, content, form and url
parameters.
author: David Blevins author: Tim Urberg |
EJBSESSIONID | final protected static String EJBSESSIONID(Code) | | |
FORM_URL_ENCODED | final public static String FORM_URL_ENCODED(Code) | | |
MULITPART_FORM_DATA | final public static String MULITPART_FORM_DATA(Code) | | |
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 |
getMethodString | public String getMethodString()(Code) | | Returns the methodString. |
getPathString | public String getPathString()(Code) | | Returns the pathString. |
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 |
getURI | public URL getURI()(Code) | | Gets the URI for the current URL page.
The URI |
readMessage | protected void readMessage(InputStream input) throws IOException(Code) | | parses the request into the 3 different parts, request, headers, and body
Parameters: input - the data input for this page throws: IOException - if an exception is thrown |
|
|
|