Home » commons-chain-1.2-src » org.apache.commons » chain » web » servlet » [javadoc | source]
org.apache.commons.chain.web.servlet
public class: ServletWebContext [javadoc | source]
java.lang.Object
   java.util.AbstractMap
      java.util.HashMap
         org.apache.commons.chain.impl.ContextBase
            org.apache.commons.chain.web.WebContext
               org.apache.commons.chain.web.servlet.ServletWebContext

All Implemented Interfaces:
    Context, Map, Serializable, Cloneable

Concrete implementation of WebContext suitable for use in Servlets and JSP pages. The abstract methods are mapped to the appropriate collections of the underlying servlet context, request, and response instances that are passed to the constructor (or the initialize method).

Field Summary
protected  ServletContext context   

The ServletContext for this web application.

 
protected  HttpServletRequest request   

The HttpServletRequest for this request.

 
protected  HttpServletResponse response   

The HttpServletResponse for this request.

 
Constructor:
 public ServletWebContext() 
 public ServletWebContext(ServletContext context,
    HttpServletRequest request,
    HttpServletResponse response) 

    Construct a ServletWebContext instance that is initialized with the specified Servlet API objects.

    Parameters:
    context - The ServletContext for this web application
    request - The HttpServletRequest for this request
    response - The HttpServletResponse for this request
Method from org.apache.commons.chain.web.servlet.ServletWebContext Summary:
getApplicationScope,   getContext,   getCookies,   getHeader,   getHeaderValues,   getInitParam,   getParam,   getParamValues,   getRequest,   getRequestScope,   getResponse,   getSessionScope,   initialize,   release
Methods from org.apache.commons.chain.web.WebContext:
getApplicationScope,   getCookies,   getHeader,   getHeaderValues,   getInitParam,   getParam,   getParamValues,   getRequestScope,   getSessionScope
Methods from org.apache.commons.chain.impl.ContextBase:
clear,   containsValue,   entrySet,   get,   isEmpty,   keySet,   put,   putAll,   remove,   values
Methods from java.util.HashMap:
clear,   clone,   containsKey,   containsValue,   entrySet,   get,   isEmpty,   keySet,   put,   putAll,   remove,   size,   values
Methods from java.util.AbstractMap:
clear,   containsKey,   containsValue,   entrySet,   equals,   get,   hashCode,   isEmpty,   keySet,   put,   putAll,   remove,   size,   toString,   values
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.commons.chain.web.servlet.ServletWebContext Detail:
 public Map getApplicationScope() 
 public ServletContext getContext() 
 public Map getCookies() 
 public Map getHeader() 
 public Map getHeaderValues() 
 public Map getInitParam() 
 public Map getParam() 
 public Map getParamValues() 
 public HttpServletRequest getRequest() 
 public Map getRequestScope() 
 public HttpServletResponse getResponse() 
 public Map getSessionScope() 
 public  void initialize(ServletContext context,
    HttpServletRequest request,
    HttpServletResponse response) 

    Initialize (or reinitialize) this ServletWebContext instance for the specified Servlet API objects.

 public  void release() 

    Release references to allocated resources acquired in initialize() of via subsequent processing. After this method is called, subsequent calls to any other method than initialize() will return undefined results.