public class MockLiferayResourceRequest
extends com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
implements com.liferay.portal.kernel.portlet.LiferayResourceRequest
PortletRequest.P3PUserInfos
ETAG
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
Constructor and Description |
---|
MockLiferayResourceRequest() |
MockLiferayResourceRequest(org.springframework.mock.web.MockHttpServletRequest mockHttpServletRequest) |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name,
String value) |
void |
addParameter(String name,
String[] values) |
void |
cleanUp() |
Map<String,String[]> |
clearRenderParameters() |
void |
defineObjects(PortletConfig portletConfig,
PortletResponse portletResponse) |
Object |
getAttribute(String name) |
Enumeration<String> |
getAttributeNames() |
long |
getContentLengthLong() |
javax.servlet.DispatcherType |
getDispatcherType() |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest() |
String |
getLifecycle() |
javax.servlet.http.HttpServletRequest |
getOriginalHttpServletRequest() |
String |
getParameter(String name) |
Map<String,String[]> |
getParameterMap() |
javax.servlet.http.Part |
getPart(String name) |
Collection<javax.servlet.http.Part> |
getParts() |
long |
getPlid() |
com.liferay.portal.kernel.model.Portlet |
getPortlet() |
PortletAsyncContext |
getPortletAsyncContext() |
PortletContext |
getPortletContext() |
String |
getPortletName() |
javax.servlet.http.HttpServletRequest |
getPortletRequestDispatcherRequest() |
RenderParameters |
getRenderParameters() |
ResourceParameters |
getResourceParameters() |
String |
getUserAgent() |
void |
invalidateSession() |
boolean |
isAsyncStarted() |
boolean |
isAsyncSupported() |
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 |
setPortletRequestDispatcherRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
PortletAsyncContext |
startPortletAsync() |
PortletAsyncContext |
startPortletAsync(ResourceRequest resourceRequest,
ResourceResponse resourceResponse) |
addPrivateRenderParameter, addPrivateRenderParameter, getCacheability, getETag, getLifecyclePhase, getPrivateRenderParameterMap, getResourceID, setCacheability, setResourceID
getCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncoding, setContent, setContentType, setMethod
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCacheability, getETag, getPortletMode, getPrivateRenderParameterMap, getResourceID, getResponseContentType, getResponseContentTypes, getWindowState
getCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncoding
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
public MockLiferayResourceRequest()
public MockLiferayResourceRequest(org.springframework.mock.web.MockHttpServletRequest mockHttpServletRequest)
public void addParameter(String name, String value)
addParameter
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public void addParameter(String name, String[] values)
addParameter
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public void cleanUp()
cleanUp
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public Map<String,String[]> clearRenderParameters()
clearRenderParameters
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public void defineObjects(PortletConfig portletConfig, PortletResponse portletResponse)
defineObjects
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public Object getAttribute(String name)
getAttribute
in interface PortletRequest
getAttribute
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface PortletRequest
getAttributeNames
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public long getContentLengthLong()
getContentLengthLong
in interface ClientDataRequest
getContentLengthLong
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
public javax.servlet.DispatcherType getDispatcherType()
getDispatcherType
in interface ResourceRequest
getDispatcherType
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
getHttpServletRequest
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public String getLifecycle()
getLifecycle
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public javax.servlet.http.HttpServletRequest getOriginalHttpServletRequest()
getOriginalHttpServletRequest
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public String getParameter(String name)
getParameter
in interface PortletRequest
getParameter
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public Map<String,String[]> getParameterMap()
getParameterMap
in interface PortletRequest
getParameterMap
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public javax.servlet.http.Part getPart(String name) throws IOException, PortletException
getPart
in interface ClientDataRequest
getPart
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
IOException
PortletException
public Collection<javax.servlet.http.Part> getParts() throws IOException, PortletException
getParts
in interface ClientDataRequest
getParts
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
IOException
PortletException
public long getPlid()
getPlid
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public com.liferay.portal.kernel.model.Portlet getPortlet()
getPortlet
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public PortletAsyncContext getPortletAsyncContext()
getPortletAsyncContext
in interface ResourceRequest
getPortletAsyncContext
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
public PortletContext getPortletContext()
getPortletContext
in interface PortletRequest
getPortletContext
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public String getPortletName()
getPortletName
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public javax.servlet.http.HttpServletRequest getPortletRequestDispatcherRequest()
getPortletRequestDispatcherRequest
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public RenderParameters getRenderParameters()
getRenderParameters
in interface RenderState
getRenderParameters
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public ResourceParameters getResourceParameters()
getResourceParameters
in interface ResourceRequest
getResourceParameters
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
public String getUserAgent()
getUserAgent
in interface PortletRequest
getUserAgent
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public void invalidateSession()
invalidateSession
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public boolean isAsyncStarted()
isAsyncStarted
in interface ResourceRequest
isAsyncStarted
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
public boolean isAsyncSupported()
isAsyncSupported
in interface ResourceRequest
isAsyncSupported
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
public void setAttribute(String name, Object value)
setAttribute
in interface PortletRequest
setAttribute
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public void setParameter(String key, String value)
setParameter
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public void setParameter(String key, String[] values)
setParameter
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public void setParameters(Map<String,String[]> parameters)
setParameters
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public void setPortletRequestDispatcherRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
setPortletRequestDispatcherRequest
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public PortletAsyncContext startPortletAsync() throws IllegalStateException
startPortletAsync
in interface ResourceRequest
startPortletAsync
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
IllegalStateException
public PortletAsyncContext startPortletAsync(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IllegalStateException
startPortletAsync
in interface ResourceRequest
startPortletAsync
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
IllegalStateException