public class PortalURL extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX
Prefix all parameters
|
Constructor and Description |
---|
PortalURL(javax.servlet.http.HttpServletRequest request)
Construct a PortletURL instance
TODO need to extract render parameters? |
Modifier and Type | Method and Description |
---|---|
static String |
buildParams(org.apache.pluto.om.common.ObjectID portletID,
boolean bAction,
javax.portlet.PortletMode portletMode,
javax.portlet.WindowState windowState,
Map parameters)
Build URL parameters list
|
static String |
extractPortletId(javax.servlet.http.HttpServletRequest servletRequest)
Extract the porlet ID from an HTTP request
|
void |
fillWindowPortlet(PortletWindowImpl portletWindow)
Fill a portlet window with state and mode values
|
javax.portlet.PortletMode |
getPortletMode()
Return the portlet mode associate to this URL.
|
javax.portlet.WindowState |
getWindowState()
Return the window state associate to this URL.
|
boolean |
isAction()
Return
true to indicate an action URL. |
static boolean |
isActionURL(javax.servlet.http.HttpServletRequest servletRequest)
Indicate if an HTTP request is an action
|
public static final String PREFIX
public PortalURL(javax.servlet.http.HttpServletRequest request)
request
- A HTTP request who define action, mode and statepublic boolean isAction()
true
to indicate an action URL.true
to indicate an action URLpublic javax.portlet.PortletMode getPortletMode()
public javax.portlet.WindowState getWindowState()
public void fillWindowPortlet(PortletWindowImpl portletWindow)
portletWindow
- The portlet window to fill with defined state and modepublic static String buildParams(org.apache.pluto.om.common.ObjectID portletID, boolean bAction, javax.portlet.PortletMode portletMode, javax.portlet.WindowState windowState, Map parameters)
portletID
- Portlet ID of the portlet targetbAction
- Indicate an action URL (vs a render URL)portletMode
- Current portlet modewindowState
- Current portlet window stateparameters
- Map of parameters (the map must be typed <String, String> or <String, String[]>)public static String extractPortletId(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest
- The HTTP requestpublic static boolean isActionURL(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest
- The HTTP requesttrue
if the HTTP request is a portlet action requestCopyright © 2018 City of Paris. All rights reserved.