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_INFOFields 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 TypeMethodDescriptionvoidaddPrivateRenderParameter(String key, String value) voidaddPrivateRenderParameter(String key, String[] values) javax.servlet.DispatcherTypegetETag()protected StringbooleanbooleanvoidsetCacheability(String cacheLevel) voidsetResourceID(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, setMethodMethods 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, setWindowStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.portlet.ClientDataRequest
getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getMethod, getPart, getParts, getPortletInputStream, getReader, setCharacterEncodingMethods 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, setAttributeMethods inherited from interface javax.portlet.RenderState
getRenderParametersMethods 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:
getCacheabilityin interfaceResourceRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherTypein interfaceResourceRequest
-
getETag
- Specified by:
getETagin interfaceResourceRequest
-
getPortletAsyncContext
- Specified by:
getPortletAsyncContextin interfaceResourceRequest
-
getPrivateRenderParameterMap
- Specified by:
getPrivateRenderParameterMapin interfaceResourceRequest
-
getResourceID
- Specified by:
getResourceIDin interfaceResourceRequest
-
getResourceParameters
- Specified by:
getResourceParametersin interfaceResourceRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStartedin interfaceResourceRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupportedin interfaceResourceRequest
-
setCacheability
-
setResourceID
-
startPortletAsync
- Specified by:
startPortletAsyncin interfaceResourceRequest- Throws:
IllegalStateException
-
startPortletAsync
public PortletAsyncContext startPortletAsync(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IllegalStateException - Specified by:
startPortletAsyncin interfaceResourceRequest- Throws:
IllegalStateException
-
getLifecyclePhase
- Overrides:
getLifecyclePhasein classMockPortletRequest
-