public interface PortletURL extends BaseURL
PortletURL interface represents a URL
 that reference the portlet itself.
 
 A PortletURL is created through the RenderResponse
 or ResourceResponse.
 Parameters, a portlet mode, a window state and a security level
 can be added to PortletURL objects. 
 
There are two types of PortletURLs:
createActionURL, and 
     trigger an action request followed by a render request.
 createRenderURL, and
     trigger a render request.
 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.
| Modifier and Type | Method and Description | 
|---|---|
| PortletMode | getPortletMode()Returns the currently set portlet mode on this PortletURL. | 
| WindowState | getWindowState()Returns the currently set window state on this PortletURL. | 
| void | removePublicRenderParameter(String name)Removes the specified public render parameter. | 
| void | setPortletMode(PortletMode portletMode)Indicates the portlet mode the portlet must be in, if this
 portlet URL triggers a request. | 
| void | setWindowState(WindowState windowState)Indicates the window state the portlet should be in, if this 
 portlet URL triggers a request. | 
addProperty, getParameterMap, setParameter, setParameter, setParameters, setProperty, setSecure, toString, write, writevoid 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.
windowState - the portlet window stateWindowStateException - if the portlet cannot switch to this state,
                   because the portal does not support this state, the portlet has not 
                   declared in its deployment descriptor that it supports this state, or the current
                   user is not allowed to switch to this state.
                   The PortletRequest.isWindowStateAllowed() method can be used
                   to check if the portlet can set a given window state.PortletRequest.isWindowStateAllowed(javax.portlet.WindowState)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 - the portlet modePortletModeException - if the portlet cannot switch to this mode,
                   because the portal does not support this mode, the portlet has not
                   declared in its deployment descriptor that it supports this mode for the current markup,
                   or the current user is not allowed to switch to this mode.
                   The PortletRequest.isPortletModeAllowed() method can be used
                   to check if the portlet can set a given portlet mode.PortletRequest.isPortletModeAllowed(javax.portlet.PortletMode)PortletMode getPortletMode()
null if none is setWindowState getWindowState()
null if none is setvoid removePublicRenderParameter(String name)
public-render-parameter element with the
 identifier mapping to the parameter name.
 Note that calling this method on a PortletURL of type Action URL does not have any effect.
name - a String specifying 
                                        the name of the public render parameter to be removedIllegalArgumentException - if name is null.Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.