|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
org.apache.commons.chain.impl.ContextBase
org.apache.commons.chain.web.WebContext
org.apache.commons.chain.web.portlet.PortletWebContext
public class PortletWebContext
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).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry, AbstractMap.SimpleImmutableEntry |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry |
| Field Summary | |
|---|---|
protected javax.portlet.PortletContext |
context
The PortletContext for this web application. |
protected javax.portlet.PortletRequest |
request
The PortletRequest for this request. |
protected javax.portlet.PortletResponse |
response
The PortletResponse for this request. |
| Constructor Summary | |
|---|---|
PortletWebContext()
Construct an uninitialized PortletWebContext instance. |
|
PortletWebContext(javax.portlet.PortletContext context,
javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Construct a PortletWebContext instance that is initialized
with the specified Portlet API objects. |
|
| Method Summary | |
|---|---|
Map |
getApplicationScope()
See the WebContext's Javadoc. |
javax.portlet.PortletContext |
getContext()
Return the PortletContext for this context. |
Map |
getCookies()
Returns an empty Map - portlets don't support Cookies. |
Map |
getHeader()
See the WebContext's Javadoc. |
Map |
getHeaderValues()
See the WebContext's Javadoc. |
Map |
getInitParam()
See the WebContext's Javadoc. |
Map |
getParam()
See the WebContext's Javadoc. |
Map |
getParamValues()
See the WebContext's Javadoc. |
javax.portlet.PortletRequest |
getRequest()
Return the PortletRequest for this context. |
Map |
getRequestScope()
See the WebContext's Javadoc. |
javax.portlet.PortletResponse |
getResponse()
Return the PortletResponse for this context. |
Map |
getSessionScope()
See the WebContext's Javadoc. |
void |
initialize(javax.portlet.PortletContext context,
javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Initialize (or reinitialize) this PortletWebContext instance
for the specified Portlet API objects. |
void |
release()
Release references to allocated resources acquired in initialize() of via subsequent processing. |
| Methods inherited from class org.apache.commons.chain.impl.ContextBase |
|---|
clear, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, values |
| Methods inherited from class java.util.HashMap |
|---|
clone, containsKey, size |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
containsKey, equals, hashCode, size |
| Field Detail |
|---|
protected javax.portlet.PortletContext context
The PortletContext for this web application.
protected javax.portlet.PortletRequest request
The PortletRequest for this request.
protected javax.portlet.PortletResponse response
The PortletResponse for this request.
| Constructor Detail |
|---|
public PortletWebContext()
Construct an uninitialized PortletWebContext instance.
public PortletWebContext(javax.portlet.PortletContext context,
javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Construct a PortletWebContext instance that is initialized
with the specified Portlet API objects.
context - The PortletContext for this web applicationrequest - The PortletRequest for this requestresponse - The PortletResponse for this request| Method Detail |
|---|
public javax.portlet.PortletContext getContext()
Return the PortletContext for this context.
PortletContext for this requestpublic javax.portlet.PortletRequest getRequest()
Return the PortletRequest for this context.
PortletRequest for this context.public javax.portlet.PortletResponse getResponse()
Return the PortletResponse for this context.
PortletResponse for this context.
public void initialize(javax.portlet.PortletContext context,
javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Initialize (or reinitialize) this PortletWebContext instance
for the specified Portlet API objects.
context - The PortletContext for this web applicationrequest - The PortletRequest for this requestresponse - The PortletResponse for this requestpublic 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.
public Map getApplicationScope()
WebContext's Javadoc.
getApplicationScope in class WebContextpublic Map getHeader()
WebContext's Javadoc.
getHeader in class WebContextpublic Map getHeaderValues()
WebContext's Javadoc.
getHeaderValues in class WebContextpublic Map getInitParam()
WebContext's Javadoc.
getInitParam in class WebContextpublic Map getParam()
WebContext's Javadoc.
getParam in class WebContextpublic Map getParamValues()
WebContext's Javadoc.
getParamValues in class WebContextpublic Map getCookies()
getCookies in class WebContextpublic Map getRequestScope()
WebContext's Javadoc.
getRequestScope in class WebContextpublic Map getSessionScope()
WebContext's Javadoc.
getSessionScope in class WebContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||