public class PortletResultHelperJSR168 extends Object implements PortletResultHelper
Constructor and Description |
---|
PortletResultHelperJSR168() |
Modifier and Type | Method and Description |
---|---|
void |
include(javax.portlet.PortletRequestDispatcher dispatcher,
String contentType,
javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response)
Call a dispatcher's include method, abstracted from the used Portlet API version.
|
void |
setPortletMode(javax.portlet.PortletResponse response,
javax.portlet.PortletMode portletMode)
Set a portlet mode, abstracted from the used Portlet API version.
|
void |
setRenderParameter(javax.portlet.PortletResponse response,
String key,
String value)
Set a render parameter, abstracted from the used Portlet API version.
|
public void setRenderParameter(javax.portlet.PortletResponse response, String key, String value)
ActionResponse
, as JSR168 implies.setRenderParameter
in interface PortletResultHelper
response
- The response to set the parameter on.key
- The parameter key to set.value
- The parameter value to set.public void setPortletMode(javax.portlet.PortletResponse response, javax.portlet.PortletMode portletMode) throws javax.portlet.PortletModeException
ActionResponse
, as JSR168 implies.setPortletMode
in interface PortletResultHelper
response
- The response to set the portlet mode on.portletMode
- The portlet mode to set.javax.portlet.PortletModeException
- in case of errors during setting of portlet modepublic void include(javax.portlet.PortletRequestDispatcher dispatcher, String contentType, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws IOException, javax.portlet.PortletException
RenderRequest
and the response must be a RenderResponse
, as JSR168 implies.include
in interface PortletResultHelper
dispatcher
- The dispatcher to call the include method on.contentType
- The content type to set for the response.request
- The request to use for includingresponse
- The response to use for includingIOException
- in case of any I/O errorsjavax.portlet.PortletException
- in case of any portlet errorsCopyright © 2000–2024 Apache Software Foundation. All rights reserved.