Class MockLiferayPortletActionRequest
Object
com.liferay.portal.kernel.test.portlet.MockPortletRequest
com.liferay.portal.kernel.test.portlet.MockClientDataRequest
com.liferay.portal.kernel.test.portlet.MockActionRequest
com.liferay.portal.kernel.test.portlet.MockLiferayPortletActionRequest
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletRequest,jakarta.portlet.ActionRequest,jakarta.portlet.ClientDataRequest,jakarta.portlet.PortletRequest,jakarta.portlet.RenderState
public class MockLiferayPortletActionRequest
extends MockActionRequest
implements com.liferay.portal.kernel.portlet.LiferayPortletRequest
- Author:
- Alicia García, Cristina González
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.portlet.PortletRequest
jakarta.portlet.PortletRequest.P3PUserInfos -
Field Summary
Fields inherited from interface jakarta.portlet.ActionRequest
ACTION_NAMEFields inherited from interface jakarta.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 -
Constructor Summary
ConstructorsConstructorDescriptionMockLiferayPortletActionRequest(org.springframework.mock.web.MockHttpServletRequest mockHttpServletRequest) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String name, String value) voidaddParameter(String name, String[] values) voidcleanUp()voiddefineObjects(jakarta.portlet.PortletConfig portletConfig, jakarta.portlet.PortletResponse portletResponse) jakarta.portlet.ActionParametersgetAttribute(String name) longjakarta.servlet.http.HttpServletRequestjakarta.servlet.http.HttpServletRequestgetParameter(String name) jakarta.servlet.http.PartCollection<jakarta.servlet.http.Part>getParts()longgetPlid()com.liferay.portal.kernel.model.Portletjakarta.portlet.PortletContextjakarta.servlet.http.HttpServletRequestjakarta.portlet.RenderParametersvoidvoidsetAttribute(String name, Object value) voidsetParameter(String key, String value) voidsetParameter(String key, String[] values) voidsetParameters(Map<String, String[]> parameters) voidsetPortletRequestDispatcherRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest) Methods inherited from class com.liferay.portal.kernel.test.portlet.MockActionRequest
getLifecyclePhaseMethods inherited from class com.liferay.portal.kernel.test.portlet.MockClientDataRequest
getCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncoding, setContent, setContentType, setMethodMethods inherited from class com.liferay.portal.kernel.test.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, setPortletSession, setPreferences, setProperty, setRemoteUser, setRequestedSessionIdValid, setScheme, setSecure, setServerName, setServerPort, setUserPrincipal, setWindowID, setWindowStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.portlet.ClientDataRequest
getCharacterEncoding, getContentLength, getContentType, getMethod, getPortletInputStream, getReader, setCharacterEncodingMethods inherited from interface jakarta.portlet.PortletRequest
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, removeAttributeMethods inherited from interface jakarta.portlet.RenderState
getPortletMode, getWindowState
-
Constructor Details
-
MockLiferayPortletActionRequest
public MockLiferayPortletActionRequest() -
MockLiferayPortletActionRequest
public MockLiferayPortletActionRequest(org.springframework.mock.web.MockHttpServletRequest mockHttpServletRequest)
-
-
Method Details
-
addParameter
- Overrides:
addParameterin classMockPortletRequest
-
addParameter
- Overrides:
addParameterin classMockPortletRequest
-
cleanUp
public void cleanUp()- Specified by:
cleanUpin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
clearRenderParameters
- Specified by:
clearRenderParametersin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
defineObjects
public void defineObjects(jakarta.portlet.PortletConfig portletConfig, jakarta.portlet.PortletResponse portletResponse) - Specified by:
defineObjectsin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getActionParameters
public jakarta.portlet.ActionParameters getActionParameters()- Specified by:
getActionParametersin interfacejakarta.portlet.ActionRequest- Overrides:
getActionParametersin classMockActionRequest
-
getAttribute
- Specified by:
getAttributein interfacejakarta.portlet.PortletRequest- Overrides:
getAttributein classMockPortletRequest
-
getAttributeNames
- Specified by:
getAttributeNamesin interfacejakarta.portlet.PortletRequest- Overrides:
getAttributeNamesin classMockPortletRequest
-
getContentLengthLong
public long getContentLengthLong()- Specified by:
getContentLengthLongin interfacejakarta.portlet.ClientDataRequest- Overrides:
getContentLengthLongin classMockClientDataRequest
-
getHttpServletRequest
public jakarta.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 jakarta.servlet.http.HttpServletRequest getOriginalHttpServletRequest()- Specified by:
getOriginalHttpServletRequestin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getParameter
- Specified by:
getParameterin interfacejakarta.portlet.PortletRequest- Overrides:
getParameterin classMockPortletRequest
-
getParameterMap
- Specified by:
getParameterMapin interfacejakarta.portlet.PortletRequest- Overrides:
getParameterMapin classMockPortletRequest
-
getPart
public jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.portlet.PortletException - Specified by:
getPartin interfacejakarta.portlet.ClientDataRequest- Overrides:
getPartin classMockClientDataRequest- Throws:
IOExceptionjakarta.portlet.PortletException
-
getParts
public Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.portlet.PortletException- Specified by:
getPartsin interfacejakarta.portlet.ClientDataRequest- Overrides:
getPartsin classMockClientDataRequest- Throws:
IOExceptionjakarta.portlet.PortletException
-
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
-
getPortletContext
public jakarta.portlet.PortletContext getPortletContext()- Specified by:
getPortletContextin interfacejakarta.portlet.PortletRequest- Overrides:
getPortletContextin classMockPortletRequest
-
getPortletName
- Specified by:
getPortletNamein interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getPortletRequestDispatcherRequest
public jakarta.servlet.http.HttpServletRequest getPortletRequestDispatcherRequest()- Specified by:
getPortletRequestDispatcherRequestin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
getRenderParameters
public jakarta.portlet.RenderParameters getRenderParameters()- Specified by:
getRenderParametersin interfacejakarta.portlet.RenderState- Overrides:
getRenderParametersin classMockPortletRequest
-
getUserAgent
- Specified by:
getUserAgentin interfacejakarta.portlet.PortletRequest- Overrides:
getUserAgentin classMockPortletRequest
-
invalidateSession
public void invalidateSession()- Specified by:
invalidateSessionin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-
setAttribute
- Specified by:
setAttributein interfacejakarta.portlet.PortletRequest- Overrides:
setAttributein classMockPortletRequest
-
setParameter
- Overrides:
setParameterin classMockPortletRequest
-
setParameter
- Overrides:
setParameterin classMockPortletRequest
-
setParameters
- Overrides:
setParametersin classMockPortletRequest
-
setPortletRequestDispatcherRequest
public void setPortletRequestDispatcherRequest(jakarta.servlet.http.HttpServletRequest httpServletRequest) - Specified by:
setPortletRequestDispatcherRequestin interfacecom.liferay.portal.kernel.portlet.LiferayPortletRequest
-