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_INFO
Fields inherited from interface javax.portlet.ResourceRequest
ETAG
-
Constructor Summary
ConstructorsConstructorDescriptionMockLiferayResourceRequest
(org.springframework.mock.web.MockHttpServletRequest mockHttpServletRequest) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(String name, String value) void
addParameter
(String name, String[] values) void
cleanUp()
void
defineObjects
(PortletConfig portletConfig, PortletResponse portletResponse) getAttribute
(String name) long
javax.servlet.DispatcherType
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletRequest
getParameter
(String name) javax.servlet.http.Part
Collection<javax.servlet.http.Part>
getParts()
long
getPlid()
com.liferay.portal.kernel.model.Portlet
javax.servlet.http.HttpServletRequest
void
boolean
boolean
void
setAttribute
(String name, Object value) void
setParameter
(String key, String value) void
setParameter
(String key, String[] values) void
setParameters
(Map<String, String[]> parameters) void
setPortlet
(com.liferay.portal.kernel.model.Portlet portlet) void
setPortletRequestDispatcherRequest
(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, setResourceID
Methods inherited from class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
getCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncoding, setContent, setContentType, setMethod
Methods 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, 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, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncoding
Methods 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, removeAttribute
Methods 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:
addParameter
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
addParameter
- Overrides:
addParameter
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
cleanUp
public void cleanUp()- Specified by:
cleanUp
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
clearRenderParameters
- Specified by:
clearRenderParameters
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
defineObjects
- Specified by:
defineObjects
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getAttribute
- Specified by:
getAttribute
in interfacePortletRequest
- Overrides:
getAttribute
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getAttributeNames
- Specified by:
getAttributeNames
in interfacePortletRequest
- Overrides:
getAttributeNames
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getContentLengthLong
public long getContentLengthLong()- Specified by:
getContentLengthLong
in interfaceClientDataRequest
- Overrides:
getContentLengthLong
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
-
getDispatcherType
public javax.servlet.DispatcherType getDispatcherType()- Specified by:
getDispatcherType
in interfaceResourceRequest
- Overrides:
getDispatcherType
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()- Specified by:
getHttpServletRequest
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getLifecycle
- Specified by:
getLifecycle
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getOriginalHttpServletRequest
public javax.servlet.http.HttpServletRequest getOriginalHttpServletRequest()- Specified by:
getOriginalHttpServletRequest
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getParameter
- Specified by:
getParameter
in interfacePortletRequest
- Overrides:
getParameter
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getParameterMap
- Specified by:
getParameterMap
in interfacePortletRequest
- Overrides:
getParameterMap
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getPart
- Specified by:
getPart
in interfaceClientDataRequest
- Overrides:
getPart
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
- Throws:
IOException
PortletException
-
getParts
- Specified by:
getParts
in interfaceClientDataRequest
- Overrides:
getParts
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
- Throws:
IOException
PortletException
-
getPlid
public long getPlid()- Specified by:
getPlid
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortlet
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getPortletAsyncContext
- Specified by:
getPortletAsyncContext
in interfaceResourceRequest
- Overrides:
getPortletAsyncContext
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
getPortletContext
- Specified by:
getPortletContext
in interfacePortletRequest
- Overrides:
getPortletContext
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getPortletName
- Specified by:
getPortletName
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getPortletRequestDispatcherRequest
public javax.servlet.http.HttpServletRequest getPortletRequestDispatcherRequest()- Specified by:
getPortletRequestDispatcherRequest
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getRenderParameters
- Specified by:
getRenderParameters
in interfaceRenderState
- Overrides:
getRenderParameters
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
getResourceParameters
- Specified by:
getResourceParameters
in interfaceResourceRequest
- Overrides:
getResourceParameters
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
getUserAgent
- Specified by:
getUserAgent
in interfacePortletRequest
- Overrides:
getUserAgent
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
invalidateSession
public void invalidateSession()- Specified by:
invalidateSession
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
isAsyncStarted
public boolean isAsyncStarted()- Specified by:
isAsyncStarted
in interfaceResourceRequest
- Overrides:
isAsyncStarted
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
isAsyncSupported
public boolean isAsyncSupported()- Specified by:
isAsyncSupported
in interfaceResourceRequest
- Overrides:
isAsyncSupported
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
-
setAttribute
- Specified by:
setAttribute
in interfacePortletRequest
- Overrides:
setAttribute
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
setParameter
- Overrides:
setParameter
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
setParameter
- Overrides:
setParameter
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
-
setParameters
- Overrides:
setParameters
in 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:
setPortletRequestDispatcherRequest
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
startPortletAsync
- Specified by:
startPortletAsync
in interfaceResourceRequest
- Overrides:
startPortletAsync
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
- Throws:
IllegalStateException
-
startPortletAsync
public PortletAsyncContext startPortletAsync(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IllegalStateException - Specified by:
startPortletAsync
in interfaceResourceRequest
- Overrides:
startPortletAsync
in classcom.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
- Throws:
IllegalStateException
-