Class MockResourceRequest
Object
com.liferay.portal.kernel.test.portlet.MockPortletRequest
com.liferay.portal.kernel.test.portlet.MockClientDataRequest
com.liferay.portal.kernel.test.portlet.MockResourceRequest
- All Implemented Interfaces:
ClientDataRequest
,PortletRequest
,RenderState
,ResourceRequest
- Direct Known Subclasses:
MockLiferayResourceRequest
- Author:
- Dante Wang
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.portlet.PortletRequest
PortletRequest.P3PUserInfos
-
Field Summary
Fields inherited from interface javax.portlet.PortletRequest
ACTION_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
Fields inherited from interface javax.portlet.ResourceRequest
ETAG
-
Constructor Summary
ConstructorsConstructorDescriptionMockResourceRequest
(String resourceID) MockResourceRequest
(PortalContext portalContext, PortletContext portletContext) MockResourceRequest
(PortletContext portletContext) MockResourceRequest
(ResourceURL resourceURL) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPrivateRenderParameter
(String key, String value) void
addPrivateRenderParameter
(String key, String[] values) javax.servlet.DispatcherType
getETag()
protected String
boolean
boolean
void
setCacheability
(String cacheLevel) void
setResourceID
(String resourceID) startPortletAsync
(ResourceRequest resourceRequest, ResourceResponse resourceResponse) Methods inherited from class com.liferay.portal.kernel.test.portlet.MockClientDataRequest
getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getMethod, getPart, getParts, getPortletInputStream, getReader, setCharacterEncoding, setContent, setContentType, setMethod
Methods inherited from class com.liferay.portal.kernel.test.portlet.MockPortletRequest
addLocale, addParameter, addParameter, addPreferredLocale, addPreferredResponseContentType, addProperty, addResponseContentType, addUserRole, checkActive, close, 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, isActive, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, registerPublicParameter, removeAttribute, setAttribute, setAuthType, setContextPath, setCookies, setParameter, setParameter, setParameters, setPortletMode, setPortletSession, setPreferences, setProperty, setRemoteUser, setRequestedSessionIdValid, setScheme, setSecure, setServerName, setServerPort, setUserPrincipal, setWindowID, setWindowState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.portlet.ClientDataRequest
getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getMethod, getPart, getParts, getPortletInputStream, getReader, setCharacterEncoding
Methods inherited from interface javax.portlet.PortletRequest
getAttribute, getAttributeNames, getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getPortalContext, getPortletContext, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getScheme, getServerName, getServerPort, getUserAgent, getUserPrincipal, getWindowID, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute, setAttribute
Methods inherited from interface javax.portlet.RenderState
getRenderParameters
Methods inherited from interface javax.portlet.ResourceRequest
getPortletMode, getResponseContentType, getResponseContentTypes, getWindowState
-
Constructor Details
-
MockResourceRequest
public MockResourceRequest() -
MockResourceRequest
-
MockResourceRequest
-
MockResourceRequest
-
MockResourceRequest
-
-
Method Details
-
addPrivateRenderParameter
-
addPrivateRenderParameter
-
getCacheability
- Specified by:
getCacheability
in interfaceResourceRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherType
in interfaceResourceRequest
-
getETag
- Specified by:
getETag
in interfaceResourceRequest
-
getPortletAsyncContext
- Specified by:
getPortletAsyncContext
in interfaceResourceRequest
-
getPrivateRenderParameterMap
- Specified by:
getPrivateRenderParameterMap
in interfaceResourceRequest
-
getResourceID
- Specified by:
getResourceID
in interfaceResourceRequest
-
getResourceParameters
- Specified by:
getResourceParameters
in interfaceResourceRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStarted
in interfaceResourceRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupported
in interfaceResourceRequest
-
setCacheability
-
setResourceID
-
startPortletAsync
- Specified by:
startPortletAsync
in interfaceResourceRequest
- Throws:
IllegalStateException
-
startPortletAsync
public PortletAsyncContext startPortletAsync(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IllegalStateException - Specified by:
startPortletAsync
in interfaceResourceRequest
- Throws:
IllegalStateException
-
getLifecyclePhase
- Overrides:
getLifecyclePhase
in classMockPortletRequest
-