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:
- javax.portlet.BaseURL, javax.portlet.PortletURL
public class MockPortletURL
- extends MockBaseURL
- implements javax.portlet.PortletURL
Mock implementation of the PortletURL
interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
Constructor Summary |
MockPortletURL(javax.portlet.PortalContext portalContext,
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 interface javax.portlet.BaseURL |
addProperty, getParameterMap, 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(javax.portlet.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(javax.portlet.WindowState windowState)
throws javax.portlet.WindowStateException
- Specified by:
setWindowState
in interface javax.portlet.PortletURL
- Throws:
javax.portlet.WindowStateException
getWindowState
public javax.portlet.WindowState getWindowState()
- Specified by:
getWindowState
in interface javax.portlet.PortletURL
setPortletMode
public void setPortletMode(javax.portlet.PortletMode portletMode)
throws javax.portlet.PortletModeException
- Specified by:
setPortletMode
in interface javax.portlet.PortletURL
- Throws:
javax.portlet.PortletModeException
getPortletMode
public javax.portlet.PortletMode getPortletMode()
- Specified by:
getPortletMode
in interface javax.portlet.PortletURL
removePublicRenderParameter
public void removePublicRenderParameter(String name)
- Specified by:
removePublicRenderParameter
in interface javax.portlet.PortletURL
toString
public String toString()
- Specified by:
toString
in interface javax.portlet.BaseURL
- Overrides:
toString
in class Object