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 |
---|---|
String |
getRedirectedUrl() |
void |
sendRedirect(String location) |
void |
sendRedirect(String location,
String renderUrlParamName) |
void |
setPortletMode(PortletMode portletMode) |
void |
setRenderParameter(String key,
String value) |
void |
setRenderParameter(String key,
String[] values) |
void |
setRenderParameters(Map<String,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(Map<String,String[]> parameters)
setRenderParameters
in interface StateAwareResponse
setRenderParameters
in class MockStateAwareResponse
public void setRenderParameter(String key, String value)
setRenderParameter
in interface StateAwareResponse
setRenderParameter
in class MockStateAwareResponse
public void setRenderParameter(String key, String[] values)
setRenderParameter
in interface StateAwareResponse
setRenderParameter
in class MockStateAwareResponse
public void sendRedirect(String location) throws IOException
sendRedirect
in interface ActionResponse
IOException
public void sendRedirect(String location, String renderUrlParamName) throws IOException
sendRedirect
in interface ActionResponse
IOException
public String getRedirectedUrl()