|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.jsr168.pluto.core.PortalURL
public class PortalURL
Define
Field Summary | |
---|---|
static java.lang.String |
PREFIX
Prefix all parameters |
Constructor Summary | |
---|---|
PortalURL(javax.servlet.http.HttpServletRequest request)
Construct a PortletURL instance TODO need to extract render parameters? |
Method Summary | |
---|---|
static java.lang.String |
buildParams(org.apache.pluto.om.common.ObjectID portletID,
boolean bAction,
javax.portlet.PortletMode portletMode,
javax.portlet.WindowState windowState,
java.util.Map parameters)
Build URL parameters list |
static java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PREFIX
Constructor Detail |
---|
public PortalURL(javax.servlet.http.HttpServletRequest request)
request
- A HTTP request who define action, mode and stateMethod Detail |
---|
public 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 java.lang.String buildParams(org.apache.pluto.om.common.ObjectID portletID, boolean bAction, javax.portlet.PortletMode portletMode, javax.portlet.WindowState windowState, java.util.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 java.lang.String extractPortletId(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest
- The HTTP request
public static boolean isActionURL(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest
- The HTTP request
true
if the HTTP request is a portlet action request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |