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 thePortletURLinterface.- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
Field Summary
Fields Modifier and Type Field Description static StringURL_TYPE_ACTIONstatic StringURL_TYPE_RENDERFields inherited from class org.springframework.mock.web.portlet.MockBaseURL
parameters
Constructor Summary
Constructors Constructor Description MockPortletURL(PortalContext portalContext, String urlType)Create a new MockPortletURL for the given URL type.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortletModegetPortletMode()WindowStategetWindowState()voidremovePublicRenderParameter(String name)voidsetPortletMode(PortletMode portletMode)voidsetWindowState(WindowState windowState)StringtoString()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
Methods inherited from interface javax.portlet.BaseURL
addProperty, getParameterMap, setParameter, setParameter, setParameters, setProperty, setSecure, write, write
Field Detail
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
Constructor Detail
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
Method Detail
setWindowState
public void setWindowState(WindowState windowState) throws WindowStateException
- Specified by:
setWindowStatein interfacePortletURL- Throws:
WindowStateException
getWindowState
public WindowState getWindowState()
- Specified by:
getWindowStatein interfacePortletURL
setPortletMode
public void setPortletMode(PortletMode portletMode) throws PortletModeException
- Specified by:
setPortletModein interfacePortletURL- Throws:
PortletModeException
getPortletMode
public PortletMode getPortletMode()
- Specified by:
getPortletModein interfacePortletURL
removePublicRenderParameter
public void removePublicRenderParameter(String name)
- Specified by:
removePublicRenderParameterin interfacePortletURL