当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
MockActionResponse (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.mock.web.portlet
Class MockActionResponse
java.lang.Object
org.springframework.mock.web.portlet.MockPortletResponse
org.springframework.mock.web.portlet.MockActionResponse
- All Implemented Interfaces:
- ActionResponse, PortletResponse
public class MockActionResponse
- extends MockPortletResponse
- implements ActionResponse
Mock implementation of the ActionResponse
interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockActionResponse
public MockActionResponse()
- Create a new MockActionResponse with a default
MockPortalContext
.
- See Also:
MockPortalContext
MockActionResponse
public MockActionResponse(PortalContext portalContext)
- Create a new MockActionResponse.
- Parameters:
portalContext
- the PortalContext defining the supported
PortletModes and WindowStates
setWindowState
public void setWindowState(WindowState windowState)
throws WindowStateException
- Specified by:
setWindowState
in interface ActionResponse
- Throws:
WindowStateException
getWindowState
public WindowState getWindowState()
setPortletMode
public void setPortletMode(PortletMode portletMode)
throws PortletModeException
- Specified by:
setPortletMode
in interface ActionResponse
- Throws:
PortletModeException
getPortletMode
public PortletMode getPortletMode()
sendRedirect
public void sendRedirect(String url)
throws IOException
- Specified by:
sendRedirect
in interface ActionResponse
- Throws:
IOException
getRedirectedUrl
public String getRedirectedUrl()
setRenderParameters
public void setRenderParameters(Map parameters)
- Specified by:
setRenderParameters
in interface ActionResponse
setRenderParameter
public void setRenderParameter(String key,
String value)
- Specified by:
setRenderParameter
in interface ActionResponse
getRenderParameter
public String getRenderParameter(String name)
setRenderParameter
public void setRenderParameter(String key,
String[] values)
- Specified by:
setRenderParameter
in interface ActionResponse
getRenderParameterValues
public String[] getRenderParameterValues(String key)
getRenderParameterNames
public Iterator getRenderParameterNames()
getRenderParameterMap
public Map getRenderParameterMap()
Copyright © 2002-2007 The Spring Framework.