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 TypeMethodDescriptionvoidaddDateHeader(String name, long date) voidvoidaddIntHeader(String name, int value) voidaddProperty(String name, String value) voidaddProperty(String name, Element element) voidaddProperty(javax.servlet.http.Cookie cookie) <T extends PortletURL & ActionURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName, 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, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, 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, MimeResponse.Copy copy) <T extends PortletURL & RenderURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateResourceURL(String portletName) javax.servlet.http.HttpServletResponsecom.liferay.portal.kernel.model.PortletgetProperty(String name) getPropertyValues(String key) voidvoidsendRedirect(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(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(WindowState windowState) voidtransferHeaders(javax.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(javax.servlet.http.Cookie cookie) - Specified by:
addPropertyin interfacePortletResponse
-
addProperty
- Specified by:
addPropertyin interfacePortletResponse
-
addProperty
- Specified by:
addPropertyin interfacePortletResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
- 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, MimeResponse.Copy copy) - Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createElement
- Specified by:
createElementin interfacePortletResponse- 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, 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, 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, MimeResponse.Copy copy) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRedirectURL
- Specified by:
createRedirectURLin interfaceActionResponse- Throws:
IllegalStateException
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- 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, MimeResponse.Copy copy) - Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
encodeURL
- Specified by:
encodeURLin interfacePortletResponse
-
getHttpServletResponse
public javax.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 interfacePortletResponse
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortletin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getPortletMode
- Specified by:
getPortletModein interfaceRenderState
-
getProperties
- Specified by:
getPropertiesin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getProperty
- Specified by:
getPropertyin interfacePortletResponse
-
getPropertyNames
- Specified by:
getPropertyNamesin interfacePortletResponse
-
getPropertyValues
- Specified by:
getPropertyValuesin interfacePortletResponse
-
getRenderParameterMap
- Specified by:
getRenderParameterMapin interfaceStateAwareResponse
-
getRenderParameters
- Specified by:
getRenderParametersin interfaceMutableRenderState- Specified by:
getRenderParametersin interfaceRenderState
-
getWindowState
- Specified by:
getWindowStatein interfaceRenderState
-
removePublicRenderParameter
- Specified by:
removePublicRenderParameterin interfaceStateAwareResponse
-
sendRedirect
- Specified by:
sendRedirectin interfaceActionResponse- Throws:
IOException
-
sendRedirect
- Specified by:
sendRedirectin interfaceActionResponse- Throws:
IOException
-
setDateHeader
- Specified by:
setDateHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setEvent
- Specified by:
setEventin interfaceStateAwareResponse
-
setEvent
- Specified by:
setEventin interfaceStateAwareResponse
-
setHeader
- Specified by:
setHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setIntHeader
- Specified by:
setIntHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setPortletMode
- Specified by:
setPortletModein interfaceMutableRenderState- Throws:
PortletModeException
-
setProperty
- Specified by:
setPropertyin interfacePortletResponse
-
setRenderParameter
- Specified by:
setRenderParameterin interfaceStateAwareResponse
-
setRenderParameter
- Specified by:
setRenderParameterin interfaceStateAwareResponse
-
setRenderParameters
- Specified by:
setRenderParametersin interfaceStateAwareResponse
-
setURLEncoder
public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) - Specified by:
setURLEncoderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setWindowState
- Specified by:
setWindowStatein interfaceMutableRenderState- Throws:
WindowStateException
-
transferHeaders
public void transferHeaders(javax.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
-