public class MockStateAwareResponse extends MockPortletResponse
javax.portlet.StateAwareResponse
interface.Modifier and Type | Field and Description |
---|---|
private java.util.Map<javax.xml.namespace.QName,java.io.Serializable> |
events |
private PortletMode |
portletMode |
private java.util.Map<java.lang.String,java.lang.String[]> |
renderParameters |
private WindowState |
windowState |
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(javax.xml.namespace.QName name) |
java.io.Serializable |
getEvent(java.lang.String name) |
java.util.Iterator<javax.xml.namespace.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(javax.xml.namespace.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
private WindowState windowState
private PortletMode portletMode
private final java.util.Map<java.lang.String,java.lang.String[]> renderParameters
private final java.util.Map<javax.xml.namespace.QName,java.io.Serializable> events
public MockStateAwareResponse()
MockPortalContext
.MockPortalContext
public MockStateAwareResponse(PortalContext portalContext)
portalContext
- the PortalContext defining the supported
PortletModes and WindowStatespublic void setWindowState(WindowState windowState) throws WindowStateException
WindowStateException
public WindowState getWindowState()
public void setPortletMode(PortletMode portletMode) throws PortletModeException
PortletModeException
public PortletMode getPortletMode()
public void setRenderParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)
public void setRenderParameter(java.lang.String key, java.lang.String value)
public void setRenderParameter(java.lang.String key, java.lang.String[] values)
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()
public void removePublicRenderParameter(java.lang.String name)
public void setEvent(javax.xml.namespace.QName name, java.io.Serializable value)
public void setEvent(java.lang.String name, java.io.Serializable value)
public java.util.Iterator<javax.xml.namespace.QName> getEventNames()
public java.io.Serializable getEvent(javax.xml.namespace.QName name)
public java.io.Serializable getEvent(java.lang.String name)