Class MockLiferayPortletActionResponse
Object
com.liferay.portal.kernel.test.portlet.MockLiferayPortletActionResponse
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletResponse
,ActionResponse
,Mutable
,MutableRenderState
,PortletResponse
,RenderState
,StateAwareResponse
public class MockLiferayPortletActionResponse
extends Object
implements ActionResponse, com.liferay.portal.kernel.portlet.LiferayPortletResponse
- Author:
- Jürgen Kappler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDateHeader
(String name, long date) void
void
addIntHeader
(String name, int value) void
addProperty
(String name, String value) void
addProperty
(String name, Element element) void
addProperty
(javax.servlet.http.Cookie cookie) <T extends PortletURL & ActionURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURL
createActionURL
(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURL
createActionURL
(String portletName, MimeResponse.Copy copy) createElement
(String tagName) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(String portletName, String lifecycle, MimeResponse.Copy copy) <T extends PortletURL & RenderURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURL
createRenderURL
(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURL
createRenderURL
(String portletName, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURL
createResourceURL
(String portletName) javax.servlet.http.HttpServletResponse
com.liferay.portal.kernel.model.Portlet
getProperty
(String name) getPropertyValues
(String key) void
void
sendRedirect
(String location) void
sendRedirect
(String location, String renderUrlParamName) void
setDateHeader
(String name, long date) void
setEvent
(String name, Serializable serializable) void
setEvent
(QName qName, Serializable serializable) void
void
setIntHeader
(String name, int value) void
setPortletMode
(PortletMode portletMode) void
setProperty
(String key, String value) void
setRenderParameter
(String name, String value) void
setRenderParameter
(String name, String... values) void
setRenderParameters
(Map<String, String[]> map) void
setURLEncoder
(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) void
setWindowState
(WindowState windowState) void
transferHeaders
(javax.servlet.http.HttpServletResponse httpServletResponse) void
-
Constructor Details
-
MockLiferayPortletActionResponse
public MockLiferayPortletActionResponse()
-
-
Method Details
-
addDateHeader
- Specified by:
addDateHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addHeader
- Specified by:
addHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addIntHeader
- Specified by:
addIntHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addProperty
public void addProperty(javax.servlet.http.Cookie cookie) - Specified by:
addProperty
in interfacePortletResponse
-
addProperty
- Specified by:
addProperty
in interfacePortletResponse
-
addProperty
- Specified by:
addProperty
in interfacePortletResponse
-
createActionURL
- Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
- Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
- Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName, MimeResponse.Copy copy) - Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createElement
- Specified by:
createElement
in interfacePortletResponse
- Throws:
DOMException
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle) - Specified by:
createLiferayPortletURL
in 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:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle, MimeResponse.Copy copy) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRedirectURL
- Specified by:
createRedirectURL
in interfaceActionResponse
- Throws:
IllegalStateException
-
createRenderURL
- Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName, MimeResponse.Copy copy) - Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
encodeURL
- Specified by:
encodeURL
in interfacePortletResponse
-
getHttpServletResponse
public javax.servlet.http.HttpServletResponse getHttpServletResponse()- Specified by:
getHttpServletResponse
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getLifecycle
- Specified by:
getLifecycle
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getNamespace
- Specified by:
getNamespace
in interfacePortletResponse
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortlet
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getPortletMode
- Specified by:
getPortletMode
in interfaceRenderState
-
getProperties
- Specified by:
getProperties
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getProperty
- Specified by:
getProperty
in interfacePortletResponse
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacePortletResponse
-
getPropertyValues
- Specified by:
getPropertyValues
in interfacePortletResponse
-
getRenderParameterMap
- Specified by:
getRenderParameterMap
in interfaceStateAwareResponse
-
getRenderParameters
- Specified by:
getRenderParameters
in interfaceMutableRenderState
- Specified by:
getRenderParameters
in interfaceRenderState
-
getWindowState
- Specified by:
getWindowState
in interfaceRenderState
-
removePublicRenderParameter
- Specified by:
removePublicRenderParameter
in interfaceStateAwareResponse
-
sendRedirect
- Specified by:
sendRedirect
in interfaceActionResponse
- Throws:
IOException
-
sendRedirect
- Specified by:
sendRedirect
in interfaceActionResponse
- Throws:
IOException
-
setDateHeader
- Specified by:
setDateHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setEvent
- Specified by:
setEvent
in interfaceStateAwareResponse
-
setEvent
- Specified by:
setEvent
in interfaceStateAwareResponse
-
setHeader
- Specified by:
setHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setIntHeader
- Specified by:
setIntHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setPortletMode
- Specified by:
setPortletMode
in interfaceMutableRenderState
- Throws:
PortletModeException
-
setProperty
- Specified by:
setProperty
in interfacePortletResponse
-
setRenderParameter
- Specified by:
setRenderParameter
in interfaceStateAwareResponse
-
setRenderParameter
- Specified by:
setRenderParameter
in interfaceStateAwareResponse
-
setRenderParameters
- Specified by:
setRenderParameters
in interfaceStateAwareResponse
-
setURLEncoder
public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) - Specified by:
setURLEncoder
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setWindowState
- Specified by:
setWindowState
in interfaceMutableRenderState
- Throws:
WindowStateException
-
transferHeaders
public void transferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse) - Specified by:
transferHeaders
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferMarkupHeadElements
public void transferMarkupHeadElements()- Specified by:
transferMarkupHeadElements
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-