| org.apache.commons.chain.web.WebContext org.apache.commons.chain.web.servlet.ServletWebContext
ServletWebContext | public class ServletWebContext extends WebContext (Code) | | 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).
author: Craig R. McClanahan version: $Revision: 412789 $ $Date: 2006-06-08 17:19:14 +0100 (Thu, 08 Jun 2006) $ |
ServletWebContext | public ServletWebContext(ServletContext context, HttpServletRequest request, HttpServletResponse response)(Code) | | Construct a
ServletWebContext instance that is initialized
with the specified Servlet API objects.
Parameters: context - The ServletContext for this web application Parameters: request - The HttpServletRequest for this request Parameters: response - The HttpServletResponse for this request |
getApplicationScope | public Map getApplicationScope()(Code) | | See the
WebContext 's Javadoc.
Application scope Map. |
getCookies | public Map getCookies()(Code) | | See the
WebContext 's Javadoc.
Map of Cookies. since: Chain 1.1 |
getHeaderValues | public Map getHeaderValues()(Code) | | See the
WebContext 's Javadoc.
Header values Map. |
getInitParam | public Map getInitParam()(Code) | | See the
WebContext 's Javadoc.
Initialization parameter Map. |
getParamValues | public Map getParamValues()(Code) | | See the
WebContext 's Javadoc.
Request parameter Map. |
getRequestScope | public Map getRequestScope()(Code) | | See the
WebContext 's Javadoc.
Request scope Map. |
getSessionScope | public Map getSessionScope()(Code) | | See the
WebContext 's Javadoc.
Session scope Map. |
initialize | public void initialize(ServletContext context, HttpServletRequest request, HttpServletResponse response)(Code) | | Initialize (or reinitialize) this
ServletWebContext instance
for the specified Servlet API objects.
Parameters: context - The ServletContext for this web application Parameters: request - The HttpServletRequest for this request Parameters: response - The HttpServletResponse for this request |
release | public void release()(Code) | | 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.
|
|
|