org.springframework.mock.web.portlet
Class MockPortletURL
java.lang.Object
org.springframework.mock.web.portlet.MockBaseURL
org.springframework.mock.web.portlet.MockPortletURL
- All Implemented Interfaces:
- BaseURL, PortletURL
public class MockPortletURL
- extends MockBaseURL
- implements PortletURL
Mock implementation of the PortletURL
interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
Methods inherited from class org.springframework.mock.web.portlet.MockBaseURL |
addProperty, encodeParameter, encodeParameter, getParameter, getParameterMap, getParameterNames, getParameterValues, getProperties, isSecure, setParameter, setParameter, setParameters, setProperty, setSecure, write, write |
URL_TYPE_RENDER
public static final String URL_TYPE_RENDER
- See Also:
- Constant Field Values
URL_TYPE_ACTION
public static final String URL_TYPE_ACTION
- See Also:
- Constant Field Values
MockPortletURL
public MockPortletURL(PortalContext portalContext,
String urlType)
- Create a new MockPortletURL for the given URL type.
- Parameters:
portalContext
- the PortalContext defining the supported
PortletModes and WindowStatesurlType
- the URL type, for example "render" or "action"- See Also:
URL_TYPE_RENDER
,
URL_TYPE_ACTION
setWindowState
public void setWindowState(WindowState windowState)
throws WindowStateException
- Specified by:
setWindowState
in interface PortletURL
- Throws:
WindowStateException
getWindowState
public WindowState getWindowState()
- Specified by:
getWindowState
in interface PortletURL
setPortletMode
public void setPortletMode(PortletMode portletMode)
throws PortletModeException
- Specified by:
setPortletMode
in interface PortletURL
- Throws:
PortletModeException
getPortletMode
public PortletMode getPortletMode()
- Specified by:
getPortletMode
in interface PortletURL
removePublicRenderParameter
public void removePublicRenderParameter(String name)
- Specified by:
removePublicRenderParameter
in interface PortletURL
toString
public String toString()
- Specified by:
toString
in interface BaseURL
- Overrides:
toString
in class Object