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)
The default behavior of this method is to call
setNextPossiblePortletModes() on the wrapped response object. |
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)
setTitle(title) on the wrapped response object.setTitle in interface RenderResponsetitle - portlet title as text String or resource URIpublic void setNextPossiblePortletModes(Collection<? extends PortletMode> portletModes)
setNextPossiblePortletModes() on the wrapped response object.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.