public class MockStateAwareResponse extends MockPortletResponse implements StateAwareResponse
StateAwareResponse
interface.Constructor and Description |
---|
MockStateAwareResponse()
Create a new MockActionResponse with a default
MockPortalContext . |
MockStateAwareResponse(PortalContext portalContext)
Create a new MockActionResponse.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
getEvent(QName name) |
Serializable |
getEvent(String name) |
Iterator<QName> |
getEventNames() |
PortletMode |
getPortletMode() |
String |
getRenderParameter(String key) |
Map<String,String[]> |
getRenderParameterMap() |
Iterator<String> |
getRenderParameterNames() |
String[] |
getRenderParameterValues(String key) |
WindowState |
getWindowState() |
void |
removePublicRenderParameter(String name) |
void |
setEvent(QName name,
Serializable value) |
void |
setEvent(String name,
Serializable value) |
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) |
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
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, setProperty
public MockStateAwareResponse()
MockPortalContext
.MockPortalContext
public MockStateAwareResponse(PortalContext portalContext)
portalContext
- the PortalContext defining the supported
PortletModes and WindowStatespublic void setWindowState(WindowState windowState) throws WindowStateException
setWindowState
in interface StateAwareResponse
WindowStateException
public WindowState getWindowState()
getWindowState
in interface StateAwareResponse
public void setPortletMode(PortletMode portletMode) throws PortletModeException
setPortletMode
in interface StateAwareResponse
PortletModeException
public PortletMode getPortletMode()
getPortletMode
in interface StateAwareResponse
public void setRenderParameters(Map<String,String[]> parameters)
setRenderParameters
in interface StateAwareResponse
public void setRenderParameter(String key, String value)
setRenderParameter
in interface StateAwareResponse
public void setRenderParameter(String key, String[] values)
setRenderParameter
in interface StateAwareResponse
public Map<String,String[]> getRenderParameterMap()
getRenderParameterMap
in interface StateAwareResponse
public void removePublicRenderParameter(String name)
removePublicRenderParameter
in interface StateAwareResponse
public void setEvent(QName name, Serializable value)
setEvent
in interface StateAwareResponse
public void setEvent(String name, Serializable value)
setEvent
in interface StateAwareResponse
public Serializable getEvent(QName name)
public Serializable getEvent(String name)