public class EventRequestWrapper extends PortletRequestWrapper implements EventRequest
EventRequestWrapper provides a convenient
implementation of the EventRequest interface
that can be subclassed by developers.
This class implements the Wrapper or Decorator pattern.
Methods default to calling through to the wrapped request object.EventRequestPortletRequest.P3PUserInfoswrappedACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, HEADER_PHASE, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO| Constructor and Description |
|---|
EventRequestWrapper(EventRequest request)
Creates an
EventRequest adaptor
wrapping the given request object. |
| Modifier and Type | Method and Description |
|---|---|
Event |
getEvent()
Returns the event that triggered the call to the processEvent method.
|
String |
getMethod()
Returns the name of the HTTP method with which the original action request was made,
for example, POST, or PUT.
|
EventRequest |
getRequest()
Return the wrapped request object.
|
void |
setRequest(EventRequest request)
Sets the request object being wrapped.
|
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRenderParameters, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserAgent, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute, setRequestgetWrapped, setWrappedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletContext, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserAgent, getUserPrincipal, getWindowID, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttributegetPortletMode, getRenderParameters, getWindowStatepublic EventRequestWrapper(EventRequest request)
EventRequest adaptor
wrapping the given request object.request - the event request to wrapIllegalArgumentException - if the request is nullpublic EventRequest getRequest()
getRequest in class PortletRequestWrapperpublic void setRequest(EventRequest request)
request - the request to setIllegalArgumentException - if the request is null.public Event getEvent()
EventRequestgetEvent in interface EventRequestpublic String getMethod()
EventRequestgetMethod in interface EventRequestJava Portlet 3.0 API Specification. See the Copyright and License provided with this distribution. Use is subject to license terms.