|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PortletURL
The PortletURL interface represents a URL that references the portlet itself.
A PortletURL is created using RenderResponse or ResourceResponse.
A portlet mode, a window state and a security level can be added to PortletURL objects.
There are two types of PortletURLs:
The string representation of a PortletURL does not need to be a valid URL at the time the portlet is generating its content. It may contain special tokens that will be converted to a valid URL, by the portal, before the content is returned to the client.
Method Summary | |
---|---|
PortletMode | getPortletMode()
Returns the currently set portlet mode on this PortletURL. |
WindowState | getWindowState()
Returns the currently set window state on this PortletURL. |
void | removePublicRenderParameter(java.lang.String name)
Removes the specified public render parameter. |
void | javax.portlet.PortletMode)">setPortletMode(PortletMode portletMode)
Indicates the portlet mode the portlet must be in, if this portlet URL triggers a request. |
void | javax.portlet.WindowState)">setWindowState(WindowState windowState)
Indicates the window state the portlet should be in, if this portlet URL triggers a request. |
Methods inherited from interface javax.portlet.BaseURL |
---|
addProperty, getParameterMap, setParameter, setParameter, setParameters, setProperty, setSecure, toString, write, write |
Method Detail |
---|
void setWindowState(WindowState windowState) throws WindowStateException
A URL can not have more than one window state attached to it. If more than one window state is set only the last one set is attached to the URL.
void setPortletMode(PortletMode portletMode) throws PortletModeException
A URL can not have more than one portlet mode attached to it. If more than one portlet mode is set only the last one set is attached to the URL.
PortletMode getPortletMode()
WindowState getWindowState()
void removePublicRenderParameter(java.lang.String name)
Note that calling this method on a PortletURL of type Action URL does not have any effect.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |