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)
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, 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)
RenderResponse
The value can be a text String
setTitle
in interface RenderResponse
title
- portlet title as text String or resource URIpublic void setNextPossiblePortletModes(Collection<? extends PortletMode> portletModes)
RenderResponse
If 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 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.