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, setWindowStateaddProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setProperty, setResponseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRenderParameterMap, removePublicRenderParameter, setEvent, setEvent, setRenderParameter, setRenderParameter, setRenderParametersaddProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, getProperty, getPropertyNames, getPropertyValues, setPropertygetRenderParameters, setPortletMode, setWindowStategetPortletMode, getWindowStatepublic EventResponseWrapper(EventResponse response)
EventResponse adaptor
wrapping the given response object.response - the event response to wrapIllegalArgumentException - if the response is nullpublic EventResponse getResponse()
getResponse in class StateAwareResponseWrapperpublic void setResponse(EventResponse response)
response - the response to setIllegalArgumentException - if the response is null.@Deprecated public void setRenderParameters(EventRequest request)
setRenderParameters() on the wrapped response object.setRenderParameters in interface EventResponserequest - 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.