org.springframework.mock.web.portlet
Class MockPortletURL
java.lang.Object
org.springframework.mock.web.portlet.MockBaseURL
org.springframework.mock.web.portlet.MockPortletURL
public class MockPortletURL
- extends MockBaseURL
Mock implementation of the javax.portlet.PortletURL
interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
Constructor Summary |
MockPortletURL(PortalContext portalContext,
java.lang.String urlType)
Create a new MockPortletURL for the given URL type. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
URL_TYPE_RENDER
public static final java.lang.String URL_TYPE_RENDER
- See Also:
- Constant Field Values
URL_TYPE_ACTION
public static final java.lang.String URL_TYPE_ACTION
- See Also:
- Constant Field Values
portalContext
private final PortalContext portalContext
urlType
private final java.lang.String urlType
windowState
private WindowState windowState
portletMode
private PortletMode portletMode
MockPortletURL
public MockPortletURL(PortalContext portalContext,
java.lang.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
- Throws:
WindowStateException
getWindowState
public WindowState getWindowState()
setPortletMode
public void setPortletMode(PortletMode portletMode)
throws PortletModeException
- Throws:
PortletModeException
getPortletMode
public PortletMode getPortletMode()
removePublicRenderParameter
public void removePublicRenderParameter(java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object