public class RenderResponseWrapper extends MimeResponseWrapper implements RenderResponse
RenderResponseWrapper provides a convenient
implementation of the RenderResponse interface
that can be subclassed by developers.
This class implements the Wrapper or Decorator pattern.
Methods default to calling through to the wrapped response object.RenderResponseMimeResponse.CopyCACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT| Constructor and Description |
|---|
RenderResponseWrapper(RenderResponse response)
Creates an
RenderResponse adaptor
wrapping the given response object. |
| Modifier and Type | Method and Description |
|---|---|
RenderResponse |
getResponse()
Return the wrapped response object.
|
void |
setNextPossiblePortletModes(Collection<? extends PortletMode> portletModes)
This method allows the portlet to tell the portal the next possible
portlet modes that the make sense from the portlet point of view.
|
void |
setResponse(RenderResponse response)
Sets the response object being wrapped.
|
void |
setTitle(String title)
Deprecated.
|
createActionURL, createActionURL, createRenderURL, createRenderURL, createResourceURL, flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentType, getLocale, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setContentType, setResponseaddProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty, setResponseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetContentTypecreateActionURL, createActionURL, createRenderURL, createRenderURL, createResourceURL, flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentType, getLocale, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSizeaddProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setPropertypublic RenderResponseWrapper(RenderResponse response)
RenderResponse adaptor
wrapping the given response object.response - the event response to wrapIllegalArgumentException - if the response is nullpublic RenderResponse getResponse()
getResponse in class MimeResponseWrapperpublic void setResponse(RenderResponse response)
response - the response to setIllegalArgumentException - if the response is null.@Deprecated public void setTitle(String title)
RenderResponseThe value can be a text String
setTitle in interface RenderResponsetitle - portlet title as text String or resource URIpublic void setNextPossiblePortletModes(Collection<? extends PortletMode> portletModes)
RenderResponseIf set, the portal should honor these enumeration of portlet modes and only provide the end user with choices to the provided portlet modes or a subset of these modes based on access control considerations.
If the portlet does not set any next possible portlet modes the default is that all portlet modes that the portlet has defined supporting in the portlet deployment descriptor are meaningful new portlet modes.
setNextPossiblePortletModes in interface RenderResponseportletModes - Enumeration of objects
of type PortletMode
or any subtype of PortletMode with the
next possible portlet modes that the make sense from the
portlet point of view, must not be null or an
empty enumeration.Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.