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, 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<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.
PortletModeobjects with 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
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.