Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » server » httpd » [javadoc | source]
org.apache.openejb.server.httpd
public interface: HttpRequest [javadoc | source]

All Implemented Interfaces:
    Serializable

All Known Implementing Classes:
    HttpRequestImpl, ServletRequestAdapter

An interface to take care of HTTP Requests. It parses headers, content, form and url parameters.
Nested Class Summary:
public static enum class  HttpRequest.Method  Request methods 
Field Summary
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 
public static final  String SERVLET_REQUEST    If the https server implementation is based on Servlets, the real HttpServletRequest will be registered in the request attributes using this name. 
public static final  String SERVLET_RESPONSE    If the https server implementation is based on Servlets, the real HttpServletResponse will be registered in the request attributes using this name. 
public static final  String SERVLET_CONTEXT    If the https server implementation is based on Servlets, the real ServletContext will be registered in the request attributes using this name. Note: a ServletContext may not be registered even if HttpServletRequest and HttpServletResponse objects are registered. 
Method from org.apache.openejb.server.httpd.HttpRequest Summary:
getAttribute,   getContentLength,   getContentType,   getHeader,   getInputStream,   getMethod,   getParameter,   getParameters,   getRemoteAddr,   getSession,   getSession,   getURI,   setAttribute
Method from org.apache.openejb.server.httpd.HttpRequest Detail:
 public Object getAttribute(String name)
 public int getContentLength()
 public String getContentType()
 public String getHeader(String name)
    Gets a header based the header name passed in.
 public InputStream getInputStream() throws IOException
 public Method getMethod()
    Gets an integer value of the request method.
 public String getParameter(String name)
    Gets a form or URL query parameter based on the name passed in.
 public Map getParameters()
    Gets all the form and URL query parameters
 public String getRemoteAddr()
 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 URI getURI()
    Gets the URI for the current URL page.
 public  void setAttribute(String name,
    Object value)