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:
jakarta.portlet.ClientDataRequest,jakarta.portlet.PortletRequest,jakarta.portlet.RenderState,jakarta.portlet.ResourceRequest
- Direct Known Subclasses:
MockLiferayResourceRequest
public class MockResourceRequest
extends MockClientDataRequest
implements jakarta.portlet.ResourceRequest
- Author:
- Dante Wang
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.portlet.PortletRequest
jakarta.portlet.PortletRequest.P3PUserInfos -
Field Summary
Fields inherited from interface jakarta.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 jakarta.portlet.ResourceRequest
ETAG -
Constructor Summary
ConstructorsConstructorDescriptionMockResourceRequest(jakarta.portlet.PortalContext portalContext, jakarta.portlet.PortletContext portletContext) MockResourceRequest(jakarta.portlet.PortletContext portletContext) MockResourceRequest(jakarta.portlet.ResourceURL resourceURL) MockResourceRequest(String resourceID) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrivateRenderParameter(String key, String value) voidaddPrivateRenderParameter(String key, String[] values) jakarta.servlet.DispatcherTypegetETag()protected Stringjakarta.portlet.PortletAsyncContextjakarta.portlet.ResourceParametersbooleanbooleanvoidsetCacheability(String cacheLevel) voidsetResourceID(String resourceID) jakarta.portlet.PortletAsyncContextjakarta.portlet.PortletAsyncContextstartPortletAsync(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.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 jakarta.portlet.ClientDataRequest
getCharacterEncoding, getContentLength, getContentLengthLong, getContentType, getMethod, getPart, getParts, getPortletInputStream, getReader, setCharacterEncodingMethods inherited from interface jakarta.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 jakarta.portlet.RenderState
getRenderParametersMethods inherited from interface jakarta.portlet.ResourceRequest
getPortletMode, getResponseContentType, getResponseContentTypes, getWindowState
-
Constructor Details
-
MockResourceRequest
public MockResourceRequest() -
MockResourceRequest
public MockResourceRequest(jakarta.portlet.PortalContext portalContext, jakarta.portlet.PortletContext portletContext) -
MockResourceRequest
public MockResourceRequest(jakarta.portlet.PortletContext portletContext) -
MockResourceRequest
public MockResourceRequest(jakarta.portlet.ResourceURL resourceURL) -
MockResourceRequest
-
-
Method Details
-
addPrivateRenderParameter
-
addPrivateRenderParameter
-
getCacheability
- Specified by:
getCacheabilityin interfacejakarta.portlet.ResourceRequest
-
getDispatcherType
public jakarta.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherTypein interfacejakarta.portlet.ResourceRequest
-
getETag
- Specified by:
getETagin interfacejakarta.portlet.ResourceRequest
-
getPortletAsyncContext
public jakarta.portlet.PortletAsyncContext getPortletAsyncContext()- Specified by:
getPortletAsyncContextin interfacejakarta.portlet.ResourceRequest
-
getPrivateRenderParameterMap
- Specified by:
getPrivateRenderParameterMapin interfacejakarta.portlet.ResourceRequest
-
getResourceID
- Specified by:
getResourceIDin interfacejakarta.portlet.ResourceRequest
-
getResourceParameters
public jakarta.portlet.ResourceParameters getResourceParameters()- Specified by:
getResourceParametersin interfacejakarta.portlet.ResourceRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStartedin interfacejakarta.portlet.ResourceRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupportedin interfacejakarta.portlet.ResourceRequest
-
setCacheability
-
setResourceID
-
startPortletAsync
- Specified by:
startPortletAsyncin interfacejakarta.portlet.ResourceRequest- Throws:
IllegalStateException
-
startPortletAsync
public jakarta.portlet.PortletAsyncContext startPortletAsync(jakarta.portlet.ResourceRequest resourceRequest, jakarta.portlet.ResourceResponse resourceResponse) throws IllegalStateException - Specified by:
startPortletAsyncin interfacejakarta.portlet.ResourceRequest- Throws:
IllegalStateException
-
getLifecyclePhase
- Overrides:
getLifecyclePhasein classMockPortletRequest
-