Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.mock.web.portlet
Class MockActionResponse

    java.lang.Object
      org.springframework.mock.web.portlet.MockPortletResponse
          org.springframework.mock.web.portlet.MockStateAwareResponse
              org.springframework.mock.web.portlet.MockActionResponse

All Implemented Interfaces:
  javax.portlet.ActionResponse, javax.portlet.PortletResponse, javax.portlet.StateAwareResponse

    public class MockActionResponse

extends MockStateAwareResponse
implements javax.portlet.ActionResponse

Mock implementation of the `ActionResponse` interface.

Since:
  2.0
Author:
  John A. Lewis, Juergen Hoeller

Constructor Summary
`MockActionResponse()` Create a new MockActionResponse with a default `MockPortalContext`.
`MockActionResponse(javax.portlet.PortalContext portalContext)` Create a new MockActionResponse.

Method Summary
`java.lang.String` | `getRedirectedUrl()`
`void` | `sendRedirect(java.lang.String location)`
`void` | `sendRedirect(java.lang.String location, java.lang.String renderUrlParamName)`
`void` | `setPortletMode(javax.portlet.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(javax.portlet.WindowState windowState)`

Methods inherited from class org.springframework.mock.web.portlet.MockStateAwareResponse
`getEvent, getEvent, getEventNames, getPortletMode, getRenderParameter, getRenderParameterMap, getRenderParameterNames, getRenderParameterValues, getWindowState, removePublicRenderParameter, setEvent, setEvent`

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.StateAwareResponse
`getPortletMode, getRenderParameterMap, getWindowState, removePublicRenderParameter, setEvent, setEvent`

Methods inherited from interface javax.portlet.PortletResponse
`addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, setProperty`

Constructor Detail

### MockActionResponse

    public MockActionResponse()

  Create a new MockActionResponse with a default `MockPortalContext`.

  See Also:
    `MockPortalContext`

### MockActionResponse

    public MockActionResponse(javax.portlet.PortalContext portalContext)

  Create a new MockActionResponse.

  Parameters:
    `portalContext` - the PortalContext defining the supported PortletModes and WindowStates

Method Detail

### setWindowState

    public void setWindowState(javax.portlet.WindowState windowState)
                        throws javax.portlet.WindowStateException

  Specified by:
    `setWindowState` in interface `javax.portlet.StateAwareResponse`
  Overrides:
    `setWindowState` in class `MockStateAwareResponse`
  Throws:
    `javax.portlet.WindowStateException`

### setPortletMode

    public void setPortletMode(javax.portlet.PortletMode portletMode)
                        throws javax.portlet.PortletModeException

  Specified by:
    `setPortletMode` in interface `javax.portlet.StateAwareResponse`
  Overrides:
    `setPortletMode` in class `MockStateAwareResponse`
  Throws:
    `javax.portlet.PortletModeException`

### setRenderParameters

    public void setRenderParameters(java.util.Map<java.lang.String,java.lang.String[]> parameters)

  Specified by:
    `setRenderParameters` in interface `javax.portlet.StateAwareResponse`
  Overrides:
    `setRenderParameters` in class `MockStateAwareResponse`

### setRenderParameter

    public void setRenderParameter(java.lang.String key,
                                   java.lang.String value)

  Specified by:
    `setRenderParameter` in interface `javax.portlet.StateAwareResponse`
  Overrides:
    `setRenderParameter` in class `MockStateAwareResponse`

### setRenderParameter

    public void setRenderParameter(java.lang.String key,
                                   java.lang.String[] values)

  Specified by:
    `setRenderParameter` in interface `javax.portlet.StateAwareResponse`
  Overrides:
    `setRenderParameter` in class `MockStateAwareResponse`

### sendRedirect

    public void sendRedirect(java.lang.String location)
                      throws java.io.IOException

  Specified by:
    `sendRedirect` in interface `javax.portlet.ActionResponse`
  Throws:
    `java.io.IOException`

### sendRedirect

    public void sendRedirect(java.lang.String location,
                             java.lang.String renderUrlParamName)
                      throws java.io.IOException

  Specified by:
    `sendRedirect` in interface `javax.portlet.ActionResponse`
  Throws:
    `java.io.IOException`

### getRedirectedUrl

    public java.lang.String getRedirectedUrl()

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD