public class EventResponseWrapper extends StateAwareResponseWrapper implements EventResponse
EventResponseWrapper
provides a convenient
implementation of the EventResponse
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.EventResponse
Constructor and Description |
---|
EventResponseWrapper(EventResponse response)
Creates an
EventResponse adaptor
wrapping the given response object. |
Modifier and Type | Method and Description |
---|---|
EventResponse |
getResponse()
Return the wrapped response object.
|
void |
setRenderParameters(EventRequest request)
Deprecated.
|
void |
setResponse(EventResponse response)
Sets the response object being wrapped.
|
getPortletMode, getRenderParameterMap, getRenderParameters, getWindowState, removePublicRenderParameter, setEvent, setEvent, setPortletMode, setRenderParameter, setRenderParameter, setRenderParameters, setResponse, setWindowState
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty, setResponse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRenderParameterMap, removePublicRenderParameter, setEvent, setEvent, setRenderParameter, setRenderParameter, setRenderParameters
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty
getRenderParameters, setPortletMode, setWindowState
getPortletMode, getWindowState
public EventResponseWrapper(EventResponse response)
EventResponse
adaptor
wrapping the given response object.response
- the event response to wrapIllegalArgumentException
- if the response is null
public EventResponse getResponse()
getResponse
in class StateAwareResponseWrapper
public void setResponse(EventResponse response)
response
- the response to setIllegalArgumentException
- if the response is null.@Deprecated public void setRenderParameters(EventRequest request)
EventResponse
All previously set render parameters are cleared.
These parameters will be accessible in all
subsequent render calls via the
PortletRequest.getParameter
call until
a new request is targeted to the portlet.
The given parameters do not need to be encoded prior to calling this method.
setRenderParameters
in interface EventResponse
request
- The request the portlet has been provided
with by the portlet container for the current
processEvent
call, must not be
null
.Java Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.