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.RenderResponse
MimeResponse.Copy
CACHE_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, setResponse
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty, setResponse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContentType
createActionURL, createActionURL, createRenderURL, createRenderURL, createResourceURL, flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentType, getLocale, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty
public RenderResponseWrapper(RenderResponse response)
RenderResponse
adaptor
wrapping the given response object.response
- the event response to wrapIllegalArgumentException
- if the response is null
public RenderResponse getResponse()
getResponse
in class MimeResponseWrapper
public 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 RenderResponse
title
- portlet title as text String or resource URIpublic void setNextPossiblePortletModes(Collection<? extends PortletMode> portletModes)
setNextPossiblePortletModes()
on the wrapped response object.setNextPossiblePortletModes
in interface RenderResponse
portletModes
- 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.