Class MockLiferayPortletActionResponse
Object
com.liferay.portal.kernel.test.portlet.MockLiferayPortletActionResponse
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletResponse,jakarta.portlet.ActionResponse,jakarta.portlet.Mutable,jakarta.portlet.MutableRenderState,jakarta.portlet.PortletResponse,jakarta.portlet.RenderState,jakarta.portlet.StateAwareResponse
public class MockLiferayPortletActionResponse
extends Object
implements jakarta.portlet.ActionResponse, com.liferay.portal.kernel.portlet.LiferayPortletResponse
- Author:
- Jürgen Kappler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDateHeader(String name, long date) voidvoidaddIntHeader(String name, int value) voidaddProperty(jakarta.servlet.http.Cookie cookie) voidaddProperty(String name, String value) voidaddProperty(String name, Element element) <T extends jakarta.portlet.PortletURL & jakarta.portlet.ActionURL>
Tjakarta.portlet.ActionURLcreateActionURL(jakarta.portlet.MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName, jakarta.portlet.MimeResponse.Copy copy) createElement(String tagName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, jakarta.portlet.MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, jakarta.portlet.MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(String portletName, String lifecycle, jakarta.portlet.MimeResponse.Copy copy) jakarta.portlet.RenderURLcreateRedirectURL(jakarta.portlet.MimeResponse.Copy copy) <T extends jakarta.portlet.PortletURL & jakarta.portlet.RenderURL>
Tjakarta.portlet.RenderURLcreateRenderURL(jakarta.portlet.MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName, jakarta.portlet.MimeResponse.Copy copy) jakarta.portlet.ResourceURLcom.liferay.portal.kernel.portlet.LiferayPortletURLcreateResourceURL(String portletName) jakarta.servlet.http.HttpServletResponsecom.liferay.portal.kernel.model.Portletjakarta.portlet.PortletModegetProperty(String name) getPropertyValues(String key) jakarta.portlet.MutableRenderParametersjakarta.portlet.WindowStatevoidvoidsendRedirect(String location) voidsendRedirect(String location, String renderUrlParamName) voidsetDateHeader(String name, long date) voidsetEvent(String name, Serializable serializable) voidsetEvent(QName qName, Serializable serializable) voidvoidsetIntHeader(String name, int value) voidsetPortletMode(jakarta.portlet.PortletMode portletMode) voidsetProperty(String key, String value) voidsetRenderParameter(String name, String value) voidsetRenderParameter(String name, String... values) voidsetRenderParameters(Map<String, String[]> map) voidsetURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) voidsetWindowState(jakarta.portlet.WindowState windowState) voidtransferHeaders(jakarta.servlet.http.HttpServletResponse httpServletResponse) void
-
Constructor Details
-
MockLiferayPortletActionResponse
public MockLiferayPortletActionResponse()
-
-
Method Details
-
addDateHeader
- Specified by:
addDateHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addHeader
- Specified by:
addHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addIntHeader
- Specified by:
addIntHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addProperty
public void addProperty(jakarta.servlet.http.Cookie cookie) - Specified by:
addPropertyin interfacejakarta.portlet.PortletResponse
-
addProperty
- Specified by:
addPropertyin interfacejakarta.portlet.PortletResponse
-
addProperty
- Specified by:
addPropertyin interfacejakarta.portlet.PortletResponse
-
createActionURL
public <T extends jakarta.portlet.PortletURL & jakarta.portlet.ActionURL> T createActionURL()- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
public jakarta.portlet.ActionURL createActionURL(jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName, jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createElement
- Specified by:
createElementin interfacejakarta.portlet.PortletResponse- Throws:
DOMException
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, jakarta.portlet.MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle, jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRedirectURL
public jakarta.portlet.RenderURL createRedirectURL(jakarta.portlet.MimeResponse.Copy copy) throws IllegalStateException - Specified by:
createRedirectURLin interfacejakarta.portlet.ActionResponse- Throws:
IllegalStateException
-
createRenderURL
public <T extends jakarta.portlet.PortletURL & jakarta.portlet.RenderURL> T createRenderURL()- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
public jakarta.portlet.RenderURL createRenderURL(jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName, jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
public jakarta.portlet.ResourceURL createResourceURL()- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
encodeURL
- Specified by:
encodeURLin interfacejakarta.portlet.PortletResponse
-
getHttpServletResponse
public jakarta.servlet.http.HttpServletResponse getHttpServletResponse()- Specified by:
getHttpServletResponsein interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getLifecycle
- Specified by:
getLifecyclein interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getNamespace
- Specified by:
getNamespacein interfacejakarta.portlet.PortletResponse
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortletin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getPortletMode
public jakarta.portlet.PortletMode getPortletMode()- Specified by:
getPortletModein interfacejakarta.portlet.RenderState
-
getProperties
- Specified by:
getPropertiesin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getProperty
- Specified by:
getPropertyin interfacejakarta.portlet.PortletResponse
-
getPropertyNames
- Specified by:
getPropertyNamesin interfacejakarta.portlet.PortletResponse
-
getPropertyValues
- Specified by:
getPropertyValuesin interfacejakarta.portlet.PortletResponse
-
getRenderParameterMap
- Specified by:
getRenderParameterMapin interfacejakarta.portlet.StateAwareResponse
-
getRenderParameters
public jakarta.portlet.MutableRenderParameters getRenderParameters()- Specified by:
getRenderParametersin interfacejakarta.portlet.MutableRenderState- Specified by:
getRenderParametersin interfacejakarta.portlet.RenderState
-
getWindowState
public jakarta.portlet.WindowState getWindowState()- Specified by:
getWindowStatein interfacejakarta.portlet.RenderState
-
removePublicRenderParameter
- Specified by:
removePublicRenderParameterin interfacejakarta.portlet.StateAwareResponse
-
sendRedirect
- Specified by:
sendRedirectin interfacejakarta.portlet.ActionResponse- Throws:
IOException
-
sendRedirect
- Specified by:
sendRedirectin interfacejakarta.portlet.ActionResponse- Throws:
IOException
-
setDateHeader
- Specified by:
setDateHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setEvent
- Specified by:
setEventin interfacejakarta.portlet.StateAwareResponse
-
setEvent
- Specified by:
setEventin interfacejakarta.portlet.StateAwareResponse
-
setHeader
- Specified by:
setHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setIntHeader
- Specified by:
setIntHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setPortletMode
public void setPortletMode(jakarta.portlet.PortletMode portletMode) throws jakarta.portlet.PortletModeException - Specified by:
setPortletModein interfacejakarta.portlet.MutableRenderState- Throws:
jakarta.portlet.PortletModeException
-
setProperty
- Specified by:
setPropertyin interfacejakarta.portlet.PortletResponse
-
setRenderParameter
- Specified by:
setRenderParameterin interfacejakarta.portlet.StateAwareResponse
-
setRenderParameter
- Specified by:
setRenderParameterin interfacejakarta.portlet.StateAwareResponse
-
setRenderParameters
- Specified by:
setRenderParametersin interfacejakarta.portlet.StateAwareResponse
-
setURLEncoder
public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) - Specified by:
setURLEncoderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setWindowState
public void setWindowState(jakarta.portlet.WindowState windowState) throws jakarta.portlet.WindowStateException - Specified by:
setWindowStatein interfacejakarta.portlet.MutableRenderState- Throws:
jakarta.portlet.WindowStateException
-
transferHeaders
public void transferHeaders(jakarta.servlet.http.HttpServletResponse httpServletResponse) - Specified by:
transferHeadersin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferMarkupHeadElements
public void transferMarkupHeadElements()- Specified by:
transferMarkupHeadElementsin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-