Package jakarta.portlet.filter
Class RenderRequestWrapper
- java.lang.Object
-
- jakarta.portlet.filter.RenderStateWrapper
-
- jakarta.portlet.filter.PortletRequestWrapper
-
- jakarta.portlet.filter.RenderRequestWrapper
-
- All Implemented Interfaces:
PortletRequest,RenderRequest,RenderState
- Direct Known Subclasses:
HeaderRequestWrapper
public class RenderRequestWrapper extends PortletRequestWrapper implements RenderRequest
TheRenderRequestWrapperprovides a convenient implementation of theRenderRequestinterface that can be subclassed by developers. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.- Since:
- 2.0
- See Also:
RenderRequest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.portlet.PortletRequest
PortletRequest.P3PUserInfos
-
-
Field Summary
-
Fields inherited from class jakarta.portlet.filter.RenderStateWrapper
wrapped
-
Fields inherited from interface jakarta.portlet.PortletRequest
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
-
Fields inherited from interface jakarta.portlet.RenderRequest
ETAG
-
-
Constructor Summary
Constructors Constructor Description RenderRequestWrapper(RenderRequest request)Creates anRenderRequestadaptor wrapping the given request object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetETag()Returns the validation tag if the portlet container has a cached response for this validation tag, ornullif no cached response exists.RenderRequestgetRequest()Return the wrapped request object.voidsetRequest(RenderRequest request)Sets the request object being wrapped.-
Methods inherited from class jakarta.portlet.filter.PortletRequestWrapper
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
-
Methods inherited from class jakarta.portlet.filter.RenderStateWrapper
getWrapped, setWrapped
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.portlet.PortletRequest
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
-
Methods inherited from interface jakarta.portlet.RenderState
getPortletMode, getRenderParameters, getWindowState
-
-
-
-
Constructor Detail
-
RenderRequestWrapper
public RenderRequestWrapper(RenderRequest request)
Creates anRenderRequestadaptor wrapping the given request object.- Parameters:
request- the render request to wrap- Throws:
IllegalArgumentException- if the request isnull
-
-
Method Detail
-
getRequest
public RenderRequest getRequest()
Return the wrapped request object.- Overrides:
getRequestin classPortletRequestWrapper- Returns:
- the wrapped request
-
setRequest
public void setRequest(RenderRequest request)
Sets the request object being wrapped.- Parameters:
request- the request to set- Throws:
IllegalArgumentException- if the request is null.
-
getETag
public String getETag()
Description copied from interface:RenderRequestReturns the validation tag if the portlet container has a cached response for this validation tag, ornullif no cached response exists.This call returns the same value as
RenderRequest.getProperty(RenderRequest.ETAG).- Specified by:
getETagin interfaceRenderRequest- Returns:
- the validation tag if the portlet container
has a cached response for this validation tag, or
nullif no cached response exists.
-
-