Class MockLiferayResourceRequest
Object
com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
com.liferay.portal.kernel.test.portlet.MockLiferayResourceRequest
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletRequest,com.liferay.portal.kernel.portlet.LiferayResourceRequest,ClientDataRequest,PortletRequest,RenderState,ResourceRequest
public class MockLiferayResourceRequest
extends com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
implements com.liferay.portal.kernel.portlet.LiferayResourceRequest
- Author:
- Cristina González
-
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
ConstructorsConstructorDescriptionMockLiferayResourceRequest(org.springframework.mock.web.MockHttpServletRequest mockHttpServletRequest) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String name, String value) voidaddParameter(String name, String[] values) voidcleanUp()voiddefineObjects(PortletConfig portletConfig, PortletResponse portletResponse) getAttribute(String name) longjavax.servlet.DispatcherTypejavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletRequestgetParameter(String name) javax.servlet.http.PartCollection<javax.servlet.http.Part>getParts()longgetPlid()com.liferay.portal.kernel.model.Portletjavax.servlet.http.HttpServletRequestvoidbooleanbooleanvoidsetAttribute(String name, Object value) voidsetParameter(String key, String value) voidsetParameter(String key, String[] values) voidsetParameters(Map<String, String[]> parameters) voidsetPortlet(com.liferay.portal.kernel.model.Portlet portlet) voidsetPortletRequestDispatcherRequest(javax.servlet.http.HttpServletRequest httpServletRequest) startPortletAsync(ResourceRequest resourceRequest, ResourceResponse resourceResponse) Methods inherited from class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
addPrivateRenderParameter, addPrivateRenderParameter, getCacheability, getETag, getLifecyclePhase, getPrivateRenderParameterMap, getResourceID, setCacheability, setResourceIDMethods inherited from class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
getCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncoding, setContent, setContentType, setMethodMethods inherited from class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
addLocale, addPreferredLocale, addPreferredResponseContentType, addProperty, addResponseContentType, addUserRole, checkActive, close, getAuthType, getContextPath, getCookies, getLocale, getLocales, 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, setAuthType, setContextPath, setCookies, setPortletMode, setPreferences, setProperty, setRemoteUser, setRequestedSessionIdValid, setScheme, setSecure, setServerName, setServerPort, setSession, 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, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncodingMethods inherited from interface javax.portlet.PortletRequest
getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameterNames, getParameterValues, getPortalContext, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttributeMethods inherited from interface javax.portlet.ResourceRequest
getCacheability, getETag, getPortletMode, getPrivateRenderParameterMap, getResourceID, getResponseContentType, getResponseContentTypes, getWindowState
-
Constructor Details
-
MockLiferayResourceRequest
public MockLiferayResourceRequest() -
MockLiferayResourceRequest
public MockLiferayResourceRequest(org.springframework.mock.web.MockHttpServletRequest mockHttpServletRequest)
-
-
Method Details
-
addParameter
- Overrides:
addParameterin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
addParameter
- Overrides:
addParameterin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
cleanUp
public void cleanUp()- Specified by:
cleanUpin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
clearRenderParameters
- Specified by:
clearRenderParametersin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
defineObjects
- Specified by:
defineObjectsin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getAttribute
- Specified by:
getAttributein interfacePortletRequest- Overrides:
getAttributein classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacePortletRequest- Overrides:
getAttributeNamesin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getContentLengthLong
public long getContentLengthLong()- Specified by:
getContentLengthLongin interfaceClientDataRequest- Overrides:
getContentLengthLongin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherTypein interfaceResourceRequest- Overrides:
getDispatcherTypein classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()- Specified by:
getHttpServletRequestin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getLifecycle
- Specified by:
getLifecyclein interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getOriginalHttpServletRequest
public javax.servlet.http.HttpServletRequest getOriginalHttpServletRequest()- Specified by:
getOriginalHttpServletRequestin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getParameter
- Specified by:
getParameterin interfacePortletRequest- Overrides:
getParameterin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getParameterMap
- Specified by:
getParameterMapin interfacePortletRequest- Overrides:
getParameterMapin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getPart
- Specified by:
getPartin interfaceClientDataRequest- Overrides:
getPartin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest- Throws:
IOExceptionPortletException
-
getParts
- Specified by:
getPartsin interfaceClientDataRequest- Overrides:
getPartsin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest- Throws:
IOExceptionPortletException
-
getPlid
public long getPlid()- Specified by:
getPlidin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortletin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getPortletAsyncContext
- Specified by:
getPortletAsyncContextin interfaceResourceRequest- Overrides:
getPortletAsyncContextin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
getPortletContext
- Specified by:
getPortletContextin interfacePortletRequest- Overrides:
getPortletContextin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getPortletName
- Specified by:
getPortletNamein interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getPortletRequestDispatcherRequest
public javax.servlet.http.HttpServletRequest getPortletRequestDispatcherRequest()- Specified by:
getPortletRequestDispatcherRequestin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getRenderParameters
- Specified by:
getRenderParametersin interfaceRenderState- Overrides:
getRenderParametersin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getResourceParameters
- Specified by:
getResourceParametersin interfaceResourceRequest- Overrides:
getResourceParametersin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
getUserAgent
- Specified by:
getUserAgentin interfacePortletRequest- Overrides:
getUserAgentin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
invalidateSession
public void invalidateSession()- Specified by:
invalidateSessionin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStartedin interfaceResourceRequest- Overrides:
isAsyncStartedin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupportedin interfaceResourceRequest- Overrides:
isAsyncSupportedin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
setAttribute
- Specified by:
setAttributein interfacePortletRequest- Overrides:
setAttributein classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
setParameter
- Overrides:
setParameterin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
setParameter
- Overrides:
setParameterin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
setParameters
- Overrides:
setParametersin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
setPortlet
public void setPortlet(com.liferay.portal.kernel.model.Portlet portlet) -
setPortletRequestDispatcherRequest
public void setPortletRequestDispatcherRequest(javax.servlet.http.HttpServletRequest httpServletRequest) - Specified by:
setPortletRequestDispatcherRequestin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
startPortletAsync
- Specified by:
startPortletAsyncin interfaceResourceRequest- Overrides:
startPortletAsyncin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest- Throws:
IllegalStateException
-
startPortletAsync
public PortletAsyncContext startPortletAsync(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IllegalStateException - Specified by:
startPortletAsyncin interfaceResourceRequest- Overrides:
startPortletAsyncin classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest- Throws:
IllegalStateException
-