public class MockLiferayPortletActionRequest
extends com.liferay.portletmvc4spring.test.mock.web.portlet.MockActionRequest
implements com.liferay.portal.kernel.portlet.LiferayPortletRequest
Constructor and Description |
---|
MockLiferayPortletActionRequest() |
MockLiferayPortletActionRequest(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) |
javax.portlet.ActionParameters |
getActionParameters() |
Object |
getAttribute(String name) |
Enumeration<String> |
getAttributeNames() |
long |
getContentLengthLong() |
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.PortletContext |
getPortletContext() |
String |
getPortletName() |
javax.servlet.http.HttpServletRequest |
getPortletRequestDispatcherRequest() |
javax.portlet.RenderParameters |
getRenderParameters() |
String |
getUserAgent() |
void |
invalidateSession() |
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) |
getLifecyclePhase
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
getAuthType, getContextPath, getCookies, getLocale, getLocales, getParameterNames, getParameterValues, getPortalContext, getPortletSession, getPortletSession, getPreferences, getPrivateParameterMap, getProperties, getProperty, getPropertyNames, getPublicParameterMap, getRemoteUser, getRequestedSessionId, getResponseContentType, getResponseContentTypes, getScheme, getServerName, getServerPort, getUserPrincipal, getWindowID, isPortletModeAllowed, isRequestedSessionIdValid, isSecure, isUserInRole, isWindowStateAllowed, removeAttribute
public MockLiferayPortletActionRequest()
public MockLiferayPortletActionRequest(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 javax.portlet.ActionParameters getActionParameters()
getActionParameters
in interface javax.portlet.ActionRequest
getActionParameters
in class com.liferay.portletmvc4spring.test.mock.web.portlet.MockActionRequest
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.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.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 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 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 setPortletRequestDispatcherRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
setPortletRequestDispatcherRequest
in interface com.liferay.portal.kernel.portlet.LiferayPortletRequest