Class MockStateAwareResponse
- java.lang.Object
- org.springframework.mock.web.portlet.MockPortletResponse
- org.springframework.mock.web.portlet.MockStateAwareResponse
- All Implemented Interfaces:
PortletResponse,StateAwareResponse
- Direct Known Subclasses:
MockActionResponse,MockEventResponse
public class MockStateAwareResponse extends MockPortletResponse implements StateAwareResponse
Mock implementation of theStateAwareResponseinterface.- Since:
- 3.0
- Author:
- Juergen Hoeller
Constructor Summary
Constructors Constructor Description MockStateAwareResponse()Create a new MockActionResponse with a defaultMockPortalContext.MockStateAwareResponse(PortalContext portalContext)Create a new MockActionResponse.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializablegetEvent(String name)SerializablegetEvent(QName name)Iterator<QName>getEventNames()PortletModegetPortletMode()StringgetRenderParameter(String key)Map<String,String[]>getRenderParameterMap()Iterator<String>getRenderParameterNames()String[]getRenderParameterValues(String key)WindowStategetWindowState()voidremovePublicRenderParameter(String name)voidsetEvent(String name, Serializable value)voidsetEvent(QName name, Serializable value)voidsetPortletMode(PortletMode portletMode)voidsetRenderParameter(String key, String value)voidsetRenderParameter(String key, String[] values)voidsetRenderParameters(Map<String,String[]> parameters)voidsetWindowState(WindowState windowState)Methods inherited from class org.springframework.mock.web.portlet.MockPortletResponse
addProperty, addProperty, addProperty, createElement, encodeURL, getCookie, getCookies, getNamespace, getPortalContext, getProperties, getProperty, getPropertyNames, getXmlProperties, getXmlProperty, getXmlPropertyNames, setNamespace, setProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.portlet.PortletResponse
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, setProperty
Constructor Detail
MockStateAwareResponse
public MockStateAwareResponse()
Create a new MockActionResponse with a defaultMockPortalContext.- See Also:
MockPortalContext
MockStateAwareResponse
public MockStateAwareResponse(PortalContext portalContext)
Create a new MockActionResponse.- Parameters:
portalContext- the PortalContext defining the supported PortletModes and WindowStates
Method Detail
setWindowState
public void setWindowState(WindowState windowState) throws WindowStateException
- Specified by:
setWindowStatein interfaceStateAwareResponse- Throws:
WindowStateException
getWindowState
public WindowState getWindowState()
- Specified by:
getWindowStatein interfaceStateAwareResponse
setPortletMode
public void setPortletMode(PortletMode portletMode) throws PortletModeException
- Specified by:
setPortletModein interfaceStateAwareResponse- Throws:
PortletModeException
getPortletMode
public PortletMode getPortletMode()
- Specified by:
getPortletModein interfaceStateAwareResponse
setRenderParameters
public void setRenderParameters(Map<String,String[]> parameters)
- Specified by:
setRenderParametersin interfaceStateAwareResponse
setRenderParameter
public void setRenderParameter(String key, String value)
- Specified by:
setRenderParameterin interfaceStateAwareResponse
setRenderParameter
public void setRenderParameter(String key, String[] values)
- Specified by:
setRenderParameterin interfaceStateAwareResponse
getRenderParameter
public String getRenderParameter(String key)
getRenderParameterValues
public String[] getRenderParameterValues(String key)
getRenderParameterNames
public Iterator<String> getRenderParameterNames()
getRenderParameterMap
public Map<String,String[]> getRenderParameterMap()
- Specified by:
getRenderParameterMapin interfaceStateAwareResponse
removePublicRenderParameter
public void removePublicRenderParameter(String name)
- Specified by:
removePublicRenderParameterin interfaceStateAwareResponse
setEvent
public void setEvent(QName name, Serializable value)
- Specified by:
setEventin interfaceStateAwareResponse
setEvent
public void setEvent(String name, Serializable value)
- Specified by:
setEventin interfaceStateAwareResponse
getEventNames
public Iterator<QName> getEventNames()
getEvent
public Serializable getEvent(QName name)
getEvent
public Serializable getEvent(String name)