Home » openejb-3.1.2-src » org.apache » openejb » webadmin » [javadoc | source]
public interface: HttpRequest [javadoc | source]

All Implemented Interfaces:

All Known Implementing Classes:

An interface to take care of HTTP Requests. It parses headers, content, form and url parameters.
Field Summary
public static final  int OPTIONS    the HTTP OPTIONS type 
public static final  int GET    the HTTP GET type 
public static final  int HEAD    the HTTP HEAD type 
public static final  int POST    the HTTP POST type 
public static final  int PUT    the HTTP PUT type 
public static final  int DELETE    the HTTP DELETE type 
public static final  int TRACE    the HTTP TRACE type 
public static final  int CONNECT    the HTTP CONNECT type 
public static final  int UNSUPPORTED    the HTTP UNSUPPORTED type 
public static final  String HEADER_ACCEPT    the Accept header 
public static final  String HEADER_ACCEPT_ENCODING    the Accept-Encoding header 
public static final  String HEADER_ACCEPT_LANGUAGE    the Accept-Language header 
public static final  String HEADER_CONTENT_TYPE    the Content-Type header 
public static final  String HEADER_CONTENT_LENGTH    the Content-Length header 
public static final  String HEADER_CONNECTION    the Connection header 
public static final  String HEADER_CACHE_CONTROL    the Cache-Control header 
public static final  String HEADER_HOST    the Host header 
public static final  String HEADER_USER_AGENT    the User-Agent header 
public static final  String HEADER_SET_COOKIE    the Set-Cookie header 
public static final  String HEADER_COOKIE    the Cookie header 
Method from org.apache.openejb.webadmin.HttpRequest Summary:
getFormParameter,   getFormParameters,   getHeader,   getMethod,   getQueryParameter,   getSession,   getSession,   getURI
Method from org.apache.openejb.webadmin.HttpRequest Detail:
 public String getFormParameter(String name)
    Gets a form parameter based on the name passed in.
 public String[][] getFormParameters()
    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
 public String getHeader(String name)
    Gets a header based the header name passed in.
 public int getMethod()
    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
 public String getQueryParameter(String name)
    Gets a URL (or query) parameter based on the name passed in.
 public HttpSession getSession()
    Returns the current session associated with this request, or if the request does not have a session, creates one.
 public HttpSession getSession(boolean create)
    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.

 public URL getURI()
    Gets the URI for the current URL page.