public class MockPortletURL extends MockBaseURL implements PortletURL
PortletURL
interface.Modifier and Type | Field and Description |
---|---|
static String |
URL_TYPE_ACTION |
static String |
URL_TYPE_RENDER |
parameters
Constructor and Description |
---|
MockPortletURL(PortalContext portalContext,
String urlType)
Create a new MockPortletURL for the given URL type.
|
Modifier and Type | Method and Description |
---|---|
PortletMode |
getPortletMode() |
WindowState |
getWindowState() |
void |
removePublicRenderParameter(String name) |
void |
setPortletMode(PortletMode portletMode) |
void |
setWindowState(WindowState windowState) |
String |
toString() |
addProperty, encodeParameter, encodeParameter, getParameter, getParameterMap, getParameterNames, getParameterValues, getProperties, isSecure, setParameter, setParameter, setParameters, setProperty, setSecure, write, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addProperty, getParameterMap, setParameter, setParameter, setParameters, setProperty, setSecure, write, write
public static final String URL_TYPE_RENDER
public static final String URL_TYPE_ACTION
public MockPortletURL(PortalContext portalContext, String urlType)
portalContext
- the PortalContext defining the supported
PortletModes and WindowStatesurlType
- the URL type, for example "render" or "action"URL_TYPE_RENDER
,
URL_TYPE_ACTION
public void setWindowState(WindowState windowState) throws WindowStateException
setWindowState
in interface PortletURL
WindowStateException
public WindowState getWindowState()
getWindowState
in interface PortletURL
public void setPortletMode(PortletMode portletMode) throws PortletModeException
setPortletMode
in interface PortletURL
PortletModeException
public PortletMode getPortletMode()
getPortletMode
in interface PortletURL
public void removePublicRenderParameter(String name)
removePublicRenderParameter
in interface PortletURL