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 |
---|---|
java.io.Serializable |
getEvent(QName name) |
java.io.Serializable |
getEvent(java.lang.String name) |
java.util.Iterator<QName> |
getEventNames() |
PortletMode |
getPortletMode() |
java.lang.String |
getRenderParameter(java.lang.String key) |
java.util.Map<java.lang.String,java.lang.String[]> |
getRenderParameterMap() |
java.util.Iterator<java.lang.String> |
getRenderParameterNames() |
java.lang.String[] |
getRenderParameterValues(java.lang.String key) |
WindowState |
getWindowState() |
void |
removePublicRenderParameter(java.lang.String name) |
void |
setEvent(QName name,
java.io.Serializable value) |
void |
setEvent(java.lang.String name,
java.io.Serializable value) |
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) |
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(java.util.Map<java.lang.String,java.lang.String[]> parameters)
setRenderParameters
in interface StateAwareResponse
public void setRenderParameter(java.lang.String key, java.lang.String value)
setRenderParameter
in interface StateAwareResponse
public void setRenderParameter(java.lang.String key, java.lang.String[] values)
setRenderParameter
in interface StateAwareResponse
public java.lang.String getRenderParameter(java.lang.String key)
public java.lang.String[] getRenderParameterValues(java.lang.String key)
public java.util.Iterator<java.lang.String> getRenderParameterNames()
public java.util.Map<java.lang.String,java.lang.String[]> getRenderParameterMap()
getRenderParameterMap
in interface StateAwareResponse
public void removePublicRenderParameter(java.lang.String name)
removePublicRenderParameter
in interface StateAwareResponse
public void setEvent(QName name, java.io.Serializable value)
setEvent
in interface StateAwareResponse
public void setEvent(java.lang.String name, java.io.Serializable value)
setEvent
in interface StateAwareResponse
public java.util.Iterator<QName> getEventNames()
public java.io.Serializable getEvent(QName name)
public java.io.Serializable getEvent(java.lang.String name)