public class MockLiferayPortletActionResponse extends Object implements ActionResponse, com.liferay.portal.kernel.portlet.LiferayPortletResponse
| Constructor and Description |
|---|
MockLiferayPortletActionResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDateHeader(String name,
long date) |
void |
addHeader(String name,
String value) |
void |
addIntHeader(String name,
int value) |
void |
addProperty(javax.servlet.http.Cookie cookie) |
void |
addProperty(String name,
org.w3c.dom.Element element) |
void |
addProperty(String name,
String value) |
<T extends PortletURL & ActionURL> |
createActionURL() |
ActionURL |
createActionURL(MimeResponse.Copy copy) |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createActionURL(String portletName) |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createActionURL(String portletName,
MimeResponse.Copy copy) |
org.w3c.dom.Element |
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) |
RenderURL |
createRedirectURL(MimeResponse.Copy copy) |
<T extends PortletURL & RenderURL> |
createRenderURL() |
RenderURL |
createRenderURL(MimeResponse.Copy copy) |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createRenderURL(String portletName) |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createRenderURL(String portletName,
MimeResponse.Copy copy) |
ResourceURL |
createResourceURL() |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createResourceURL(String portletName) |
String |
encodeURL(String url) |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse() |
String |
getLifecycle() |
String |
getNamespace() |
com.liferay.portal.kernel.model.Portlet |
getPortlet() |
PortletMode |
getPortletMode() |
Map<String,String[]> |
getProperties() |
String |
getProperty(String name) |
Collection<String> |
getPropertyNames() |
Collection<String> |
getPropertyValues(String key) |
Map<String,String[]> |
getRenderParameterMap() |
MutableRenderParameters |
getRenderParameters() |
WindowState |
getWindowState() |
void |
removePublicRenderParameter(String name) |
void |
sendRedirect(String location) |
void |
sendRedirect(String location,
String renderUrlParamName) |
void |
setDateHeader(String name,
long date) |
void |
setEvent(javax.xml.namespace.QName qName,
Serializable serializable) |
void |
setEvent(String name,
Serializable serializable) |
void |
setHeader(String name,
String value) |
void |
setIntHeader(String name,
int value) |
void |
setPortletMode(PortletMode portletMode) |
void |
setProperty(String key,
String value) |
void |
setRenderParameter(String name,
String... values) |
void |
setRenderParameter(String name,
String value) |
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 |
transferMarkupHeadElements() |
public void addDateHeader(String name,
long date)
addDateHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void addHeader(String name,
String value)
addHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void addIntHeader(String name,
int value)
addIntHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void addProperty(javax.servlet.http.Cookie cookie)
addProperty in interface PortletResponsepublic void addProperty(String name,
org.w3c.dom.Element element)
addProperty in interface PortletResponsepublic void addProperty(String name,
String value)
addProperty in interface PortletResponsepublic <T extends PortletURL & ActionURL> T createActionURL()
createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic ActionURL createActionURL(MimeResponse.Copy copy)
createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName)
createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName,
MimeResponse.Copy copy)
createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic org.w3c.dom.Element createElement(String tagName)
throws org.w3c.dom.DOMException
createElement in interface PortletResponseorg.w3c.dom.DOMExceptionpublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid,
String portletName,
String lifecycle)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid,
String portletName,
String lifecycle,
boolean includeLinkToLayoutUuid)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid,
String portletName,
String lifecycle,
MimeResponse.Copy copy)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid,
String portletName,
String lifecycle,
MimeResponse.Copy copy,
boolean includeLinkToLayoutUuid)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName,
String lifecycle)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName,
String lifecycle,
MimeResponse.Copy copy)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic RenderURL createRedirectURL(MimeResponse.Copy copy) throws IllegalStateException
createRedirectURL in interface ActionResponseIllegalStateExceptionpublic <T extends PortletURL & RenderURL> T createRenderURL()
createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic RenderURL createRenderURL(MimeResponse.Copy copy)
createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName)
createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName,
MimeResponse.Copy copy)
createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic ResourceURL createResourceURL()
createResourceURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createResourceURL(String portletName)
createResourceURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic String encodeURL(String url)
encodeURL in interface PortletResponsepublic javax.servlet.http.HttpServletResponse getHttpServletResponse()
getHttpServletResponse in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic String getLifecycle()
getLifecycle in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic String getNamespace()
getNamespace in interface PortletResponsepublic com.liferay.portal.kernel.model.Portlet getPortlet()
getPortlet in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic PortletMode getPortletMode()
getPortletMode in interface RenderStatepublic Map<String,String[]> getProperties()
getProperties in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic String getProperty(String name)
getProperty in interface PortletResponsepublic Collection<String> getPropertyNames()
getPropertyNames in interface PortletResponsepublic Collection<String> getPropertyValues(String key)
getPropertyValues in interface PortletResponsepublic Map<String,String[]> getRenderParameterMap()
getRenderParameterMap in interface StateAwareResponsepublic MutableRenderParameters getRenderParameters()
getRenderParameters in interface MutableRenderStategetRenderParameters in interface RenderStatepublic WindowState getWindowState()
getWindowState in interface RenderStatepublic void removePublicRenderParameter(String name)
removePublicRenderParameter in interface StateAwareResponsepublic void sendRedirect(String location)
throws IOException
sendRedirect in interface ActionResponseIOExceptionpublic void sendRedirect(String location,
String renderUrlParamName)
throws IOException
sendRedirect in interface ActionResponseIOExceptionpublic void setDateHeader(String name,
long date)
setDateHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void setEvent(javax.xml.namespace.QName qName,
Serializable serializable)
setEvent in interface StateAwareResponsepublic void setEvent(String name,
Serializable serializable)
setEvent in interface StateAwareResponsepublic void setHeader(String name,
String value)
setHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void setIntHeader(String name,
int value)
setIntHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void setPortletMode(PortletMode portletMode) throws PortletModeException
setPortletMode in interface MutableRenderStatePortletModeExceptionpublic void setProperty(String key,
String value)
setProperty in interface PortletResponsepublic void setRenderParameter(String name,
String value)
setRenderParameter in interface StateAwareResponsepublic void setRenderParameter(String name,
String... values)
setRenderParameter in interface StateAwareResponsepublic void setRenderParameters(Map<String,String[]> map)
setRenderParameters in interface StateAwareResponsepublic void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder)
setURLEncoder in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void setWindowState(WindowState windowState) throws WindowStateException
setWindowState in interface MutableRenderStateWindowStateExceptionpublic void transferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse)
transferHeaders in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void transferMarkupHeadElements()
transferMarkupHeadElements in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse