public class MockActionResponse extends MockStateAwareResponse implements ActionResponse
ActionResponse
interface.Constructor and Description |
---|
MockActionResponse()
Create a new MockActionResponse with a default
MockPortalContext . |
MockActionResponse(PortalContext portalContext)
Create a new MockActionResponse.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRedirectedUrl() |
void |
sendRedirect(java.lang.String location) |
void |
sendRedirect(java.lang.String location,
java.lang.String renderUrlParamName) |
void |
setPortletMode(PortletMode portletMode) |
void |
setRenderParameter(java.lang.String key,
java.lang.String value) |
void |
setRenderParameter(java.lang.String key,
java.lang.String[] values) |
void |
setRenderParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters) |
void |
setWindowState(WindowState windowState) |
getEvent, getEvent, getEventNames, getPortletMode, getRenderParameter, getRenderParameterMap, getRenderParameterNames, getRenderParameterValues, getWindowState, removePublicRenderParameter, setEvent, setEvent
addProperty, addProperty, addProperty, createElement, encodeURL, getCookie, getCookies, getNamespace, getPortalContext, getProperties, getProperty, getPropertyNames, getXmlProperties, getXmlProperty, getXmlPropertyNames, setNamespace, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPortletMode, getRenderParameterMap, getWindowState, removePublicRenderParameter, setEvent, setEvent
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, setProperty
public MockActionResponse()
MockPortalContext
.MockPortalContext
public MockActionResponse(PortalContext portalContext)
portalContext
- the PortalContext defining the supported
PortletModes and WindowStatespublic void setWindowState(WindowState windowState) throws WindowStateException
setWindowState
in interface StateAwareResponse
setWindowState
in class MockStateAwareResponse
WindowStateException
public void setPortletMode(PortletMode portletMode) throws PortletModeException
setPortletMode
in interface StateAwareResponse
setPortletMode
in class MockStateAwareResponse
PortletModeException
public void setRenderParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
setRenderParameters
in interface StateAwareResponse
setRenderParameters
in class MockStateAwareResponse
public void setRenderParameter(java.lang.String key, java.lang.String value)
setRenderParameter
in interface StateAwareResponse
setRenderParameter
in class MockStateAwareResponse
public void setRenderParameter(java.lang.String key, java.lang.String[] values)
setRenderParameter
in interface StateAwareResponse
setRenderParameter
in class MockStateAwareResponse
public void sendRedirect(java.lang.String location) throws java.io.IOException
sendRedirect
in interface ActionResponse
java.io.IOException
public void sendRedirect(java.lang.String location, java.lang.String renderUrlParamName) throws java.io.IOException
sendRedirect
in interface ActionResponse
java.io.IOException
public java.lang.String getRedirectedUrl()