public class MockEventRequest extends MockPortletRequest implements javax.portlet.EventRequest
EventRequest interface.| Constructor and Description |
|---|
MockEventRequest(javax.portlet.Event event)
Create a new MockEventRequest with a default
MockPortalContext
and a default MockPortletContext. |
MockEventRequest(javax.portlet.Event event,
javax.portlet.PortalContext portalContext,
javax.portlet.PortletContext portletContext)
Create a new MockEventRequest.
|
MockEventRequest(javax.portlet.Event event,
javax.portlet.PortletContext portletContext)
Create a new MockEventRequest with a default
MockPortalContext. |
| Modifier and Type | Method and Description |
|---|---|
javax.portlet.Event |
getEvent() |
protected String |
getLifecyclePhase()
Return the Portlet 2.0 lifecycle id for the current phase.
|
String |
getMethod() |
void |
setMethod(String method) |
addLocale, addParameter, addParameter, addPreferredLocale, addPreferredResponseContentType, addProperty, addResponseContentType, addUserRole, checkActive, close, getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isActive, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, registerPublicParameter, removeAttribute, setAttribute, setAuthType, setContextPath, setCookies, setParameter, setParameter, setParameters, setPortletMode, setPreferences, setProperty, setRemoteUser, setRequestedSessionIdValid, setScheme, setSecure, setServerName, setServerPort, setSession, setUserPrincipal, setWindowID, setWindowStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletMode, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, getWindowState, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttributepublic MockEventRequest(javax.portlet.Event event)
MockPortalContext
and a default MockPortletContext.event - the event that this request wrapsMockEventpublic MockEventRequest(javax.portlet.Event event,
javax.portlet.PortletContext portletContext)
MockPortalContext.event - the event that this request wrapsportletContext - the PortletContext that the request runs inMockEventpublic MockEventRequest(javax.portlet.Event event,
javax.portlet.PortalContext portalContext,
javax.portlet.PortletContext portletContext)
event - the event that this request wrapsportalContext - the PortletContext that the request runs inportletContext - the PortletContext that the request runs inprotected String getLifecyclePhase()
MockPortletRequestgetLifecyclePhase in class MockPortletRequestpublic javax.portlet.Event getEvent()
getEvent in interface javax.portlet.EventRequestpublic void setMethod(String method)
public String getMethod()
getMethod in interface javax.portlet.EventRequestCopyright © 2015. All rights reserved.