public interface RenderResponse extends MimeResponse
RenderResponsedefines an object to assist a portlet in sending a response to the portal. It extends the
MimeResponseinterface to provide specific render response functionality to portlets.
RenderResponseobject and passes it as argument to the portlet's
|Modifier and Type||Method and Description|
Sets the MIME type for the render response.
This method allows the portlet to tell the portal the next possible portlet modes that the make sense from the portlet point of view.
This method sets the title of the portlet.
createActionURL, createActionURL, createRenderURL, createRenderURL, createResourceURL, flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentType, getLocale, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize
void setTitle(String title)
The value can be a text String
title- portlet title as text String or resource URI
void setNextPossiblePortletModes(Collection<? extends PortletMode> portletModes)
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.
Enumerationof objects of type
PortletModeor any subtype of
PortletModewith the next possible portlet modes that the make sense from the portlet point of view, must not be
nullor an empty enumeration.
void setContentType(String type)
getOutputStream does not change the content type.
The portlet container will ignore any character encoding
specified as part of the content type for
Java Portlet Specification V3.0 Working Document. See the Copyright and License provided with this distribution. Use is subject to license terms.