public class MockLiferayResourceRequest
extends com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
implements com.liferay.portal.kernel.portlet.LiferayResourceRequest
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(javax.portlet.PortletConfig portletConfig,
javax.portlet.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() |
javax.portlet.PortletAsyncContext |
getPortletAsyncContext() |
javax.portlet.PortletContext |
getPortletContext() |
String |
getPortletName() |
javax.servlet.http.HttpServletRequest |
getPortletRequestDispatcherRequest() |
javax.portlet.RenderParameters |
getRenderParameters() |
javax.portlet.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 |
setPortlet(com.liferay.portal.kernel.model.Portlet portlet) |
void |
setPortletRequestDispatcherRequest(javax.servlet.http.HttpServletRequest httpServletRequest) |
javax.portlet.PortletAsyncContext |
startPortletAsync() |
javax.portlet.PortletAsyncContext |
startPortletAsync(javax.portlet.ResourceRequest resourceRequest,
javax.portlet.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(javax.portlet.PortletConfig portletConfig, javax.portlet.PortletResponse portletResponse)
defineObjects
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public Object getAttribute(String name)
getAttribute
in interface javax.portlet.PortletRequest
getAttribute
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public Enumeration<String> getAttributeNames()
getAttributeNames
in interface javax.portlet.PortletRequest
getAttributeNames
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public long getContentLengthLong()
getContentLengthLong
in interface javax.portlet.ClientDataRequest
getContentLengthLong
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
public javax.servlet.DispatcherType getDispatcherType()
getDispatcherType
in interface javax.portlet.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 javax.portlet.PortletRequest
getParameter
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public Map<String,String[]> getParameterMap()
getParameterMap
in interface javax.portlet.PortletRequest
getParameterMap
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public javax.servlet.http.Part getPart(String name) throws IOException, javax.portlet.PortletException
getPart
in interface javax.portlet.ClientDataRequest
getPart
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
IOException
javax.portlet.PortletException
public Collection<javax.servlet.http.Part> getParts() throws IOException, javax.portlet.PortletException
getParts
in interface javax.portlet.ClientDataRequest
getParts
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockClientDataRequest
IOException
javax.portlet.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 javax.portlet.PortletAsyncContext getPortletAsyncContext()
getPortletAsyncContext
in interface javax.portlet.ResourceRequest
getPortletAsyncContext
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
public javax.portlet.PortletContext getPortletContext()
getPortletContext
in interface javax.portlet.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 javax.portlet.RenderParameters getRenderParameters()
getRenderParameters
in interface javax.portlet.RenderState
getRenderParameters
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockPortletRequest
public javax.portlet.ResourceParameters getResourceParameters()
getResourceParameters
in interface javax.portlet.ResourceRequest
getResourceParameters
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
public String getUserAgent()
getUserAgent
in interface javax.portlet.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 javax.portlet.ResourceRequest
isAsyncStarted
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
public boolean isAsyncSupported()
isAsyncSupported
in interface javax.portlet.ResourceRequest
isAsyncSupported
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
public void setAttribute(String name, Object value)
setAttribute
in interface javax.portlet.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 setPortlet(com.liferay.portal.kernel.model.Portlet portlet)
public void setPortletRequestDispatcherRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
setPortletRequestDispatcherRequest
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest
public javax.portlet.PortletAsyncContext startPortletAsync() throws IllegalStateException
startPortletAsync
in interface javax.portlet.ResourceRequest
startPortletAsync
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
IllegalStateException
public javax.portlet.PortletAsyncContext startPortletAsync(javax.portlet.ResourceRequest resourceRequest, javax.portlet.ResourceResponse resourceResponse) throws IllegalStateException
startPortletAsync
in interface javax.portlet.ResourceRequest
startPortletAsync
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockResourceRequest
IllegalStateException