Package jakarta.portlet.filter
Class RenderResponseWrapper
- java.lang.Object
-
- jakarta.portlet.filter.PortletResponseWrapper
-
- jakarta.portlet.filter.MimeResponseWrapper
-
- jakarta.portlet.filter.RenderResponseWrapper
-
- All Implemented Interfaces:
MimeResponse,PortletResponse,RenderResponse
public class RenderResponseWrapper extends MimeResponseWrapper implements RenderResponse
TheRenderResponseWrapperprovides a convenient implementation of theRenderResponseinterface that can be subclassed by developers. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped response object.- Since:
- 2.0
- See Also:
RenderResponse
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.portlet.MimeResponse
MimeResponse.Copy
-
-
Field Summary
-
Fields inherited from interface jakarta.portlet.MimeResponse
CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT
-
-
Constructor Summary
Constructors Constructor Description RenderResponseWrapper(RenderResponse response)Creates anRenderResponseadaptor wrapping the given response object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RenderResponsegetResponse()Return the wrapped response object.voidsetNextPossiblePortletModes(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.voidsetResponse(RenderResponse response)Sets the response object being wrapped.voidsetTitle(String title)Deprecated.-
Methods inherited from class jakarta.portlet.filter.MimeResponseWrapper
createActionURL, createActionURL, createRenderURL, createRenderURL, createResourceURL, flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentType, getLocale, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setContentType, setResponse
-
Methods inherited from class jakarta.portlet.filter.PortletResponseWrapper
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty, setResponse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.portlet.MimeResponse
createActionURL, createActionURL, createRenderURL, createRenderURL, createResourceURL, flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentType, getLocale, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize
-
Methods inherited from interface jakarta.portlet.PortletResponse
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty
-
Methods inherited from interface jakarta.portlet.RenderResponse
setContentType
-
-
-
-
Constructor Detail
-
RenderResponseWrapper
public RenderResponseWrapper(RenderResponse response)
Creates anRenderResponseadaptor wrapping the given response object.- Parameters:
response- the event response to wrap- Throws:
IllegalArgumentException- if the response isnull
-
-
Method Detail
-
getResponse
public RenderResponse getResponse()
Return the wrapped response object.- Overrides:
getResponsein classMimeResponseWrapper- Returns:
- the wrapped response
-
setResponse
public void setResponse(RenderResponse response)
Sets the response object being wrapped.- Parameters:
response- the response to set- Throws:
IllegalArgumentException- if the response is null.
-
setTitle
@Deprecated public void setTitle(String title)
Deprecated.Description copied from interface:RenderResponseThis method sets the title of the portlet.The value can be a text String
- Specified by:
setTitlein interfaceRenderResponse- Parameters:
title- portlet title as text String or resource URI
-
setNextPossiblePortletModes
public void setNextPossiblePortletModes(Collection<? extends PortletMode> portletModes)
Description copied from interface:RenderResponseThis method allows the portlet to tell the portal the next possible portlet modes that the make sense from the portlet point of view.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.
- Specified by:
setNextPossiblePortletModesin interfaceRenderResponse- Parameters:
portletModes-Enumerationof objects of typePortletModeor any subtype ofPortletModewith the next possible portlet modes that the make sense from the portlet point of view, must not benullor an empty enumeration.
-
-