| org.apache.commons.chain.web.WebContext org.apache.commons.chain.web.portlet.PortletWebContext
PortletWebContext | public class PortletWebContext extends WebContext (Code) | | Concrete implementation of
WebContext suitable for use in
portlets. The abstract methods are mapped to the appropriate
collections of the underlying portlet 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) $ |
Field Summary | |
protected PortletContext | context | protected PortletRequest | request | protected PortletResponse | response |
context | protected PortletContext context(Code) | | The PortletContext for this web application.
|
request | protected PortletRequest request(Code) | | The PortletRequest for this request.
|
response | protected PortletResponse response(Code) | | The PortletResponse for this request.
|
PortletWebContext | public PortletWebContext(PortletContext context, PortletRequest request, PortletResponse response)(Code) | | Construct a
PortletWebContext instance that is initialized
with the specified Portlet API objects.
Parameters: context - The PortletContext for this web application Parameters: request - The PortletRequest for this request Parameters: response - The PortletResponse for this request |
getApplicationScope | public Map getApplicationScope()(Code) | | See the
WebContext 's Javadoc.
Application scope Map. |
getContext | public PortletContext getContext()(Code) | | Return the
PortletContext for this context.
The PortletContext for this request |
getCookies | public Map getCookies()(Code) | | Returns an empty Map - portlets don't support Cookies.
An empty Map. 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. |
getRequest | public PortletRequest getRequest()(Code) | | Return the
PortletRequest for this context.
The PortletRequest for this context. |
getRequestScope | public Map getRequestScope()(Code) | | See the
WebContext 's Javadoc.
Request scope Map. |
getResponse | public PortletResponse getResponse()(Code) | | Return the
PortletResponse for this context.
The PortletResponse for this context. |
getSessionScope | public Map getSessionScope()(Code) | | See the
WebContext 's Javadoc.
Session scope Map. |
initialize | public void initialize(PortletContext context, PortletRequest request, PortletResponse response)(Code) | | Initialize (or reinitialize) this
PortletWebContext instance
for the specified Portlet API objects.
Parameters: context - The PortletContext for this web application Parameters: request - The PortletRequest for this request Parameters: response - The PortletResponse 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.
|
|
|