public class MockPortletURL extends MockBaseURL
javax.portlet.PortletURL
interface.Modifier and Type | Field and Description |
---|---|
private PortalContext |
portalContext |
private PortletMode |
portletMode |
static java.lang.String |
URL_TYPE_ACTION |
static java.lang.String |
URL_TYPE_RENDER |
private java.lang.String |
urlType |
private WindowState |
windowState |
parameters
Constructor and Description |
---|
MockPortletURL(PortalContext portalContext,
java.lang.String urlType)
Create a new MockPortletURL for the given URL type.
|
Modifier and Type | Method and Description |
---|---|
PortletMode |
getPortletMode() |
WindowState |
getWindowState() |
void |
removePublicRenderParameter(java.lang.String name) |
void |
setPortletMode(PortletMode portletMode) |
void |
setWindowState(WindowState windowState) |
java.lang.String |
toString() |
addProperty, encodeParameter, encodeParameter, getParameter, getParameterMap, getParameterNames, getParameterValues, getProperties, isSecure, setParameter, setParameter, setParameters, setProperty, setSecure, write, write
public static final java.lang.String URL_TYPE_RENDER
public static final java.lang.String URL_TYPE_ACTION
private final PortalContext portalContext
private final java.lang.String urlType
private WindowState windowState
private PortletMode portletMode
public MockPortletURL(PortalContext portalContext, java.lang.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
WindowStateException
public WindowState getWindowState()
public void setPortletMode(PortletMode portletMode) throws PortletModeException
PortletModeException
public PortletMode getPortletMode()
public void removePublicRenderParameter(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object