public class RenderRequestWrapper extends PortletRequestWrapper implements RenderRequest
RenderRequestWrapper
provides a convenient
implementation of the RenderRequest
interface
that can be subclassed by developers.
This class implements the Wrapper or Decorator pattern.
Methods default to calling through to the wrapped request object.RenderRequest
PortletRequest.P3PUserInfos
wrapped
ETAG
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, HEADER_PHASE, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO
Constructor and Description |
---|
RenderRequestWrapper(RenderRequest request)
Creates an
RenderRequest adaptor
wrapping the given request object. |
Modifier and Type | Method and Description |
---|---|
String |
getETag()
Returns the validation tag if the portlet container
has a cached response for this validation tag, or
null if no cached response exists. |
RenderRequest |
getRequest()
Return the wrapped request object.
|
void |
setRequest(RenderRequest request)
Sets the request object being wrapped.
|
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRenderParameters, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserAgent, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute, setRequest
getWrapped, setWrapped
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletContext, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserAgent, getUserPrincipal, getWindowID, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
getPortletMode, getRenderParameters, getWindowState
public RenderRequestWrapper(RenderRequest request)
RenderRequest
adaptor
wrapping the given request object.request
- the render request to wrapIllegalArgumentException
- if the request is null
public RenderRequest getRequest()
getRequest
in class PortletRequestWrapper
public void setRequest(RenderRequest request)
request
- the request to setIllegalArgumentException
- if the request is null.public String getETag()
RenderRequest
null
if no cached response exists.
This call returns the same value as
RenderRequest.getProperty(RenderRequest.ETAG)
.
getETag
in interface RenderRequest
null
if no cached response exists.Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.