public class WebappcontainerApp extends Object implements fr.paris.lutece.portal.web.xpages.XPageApplication
Modifier and Type | Field and Description |
---|---|
static String |
PARAMETER_CODE |
static String |
PARAMETER_PAGE |
static String |
PARAMETER_PAGE_HACK |
static String |
PARAMETER_WEBAPP_URL |
Constructor and Description |
---|
WebappcontainerApp() |
Modifier and Type | Method and Description |
---|---|
fr.paris.lutece.portal.web.xpages.XPage |
getPage(javax.servlet.http.HttpServletRequest request,
int nMode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the XPage content depending on the request parameters and the current mode.
|
static String |
getRequestUrl(javax.servlet.http.HttpServletRequest request)
Get the requested url in Session or create it if not present
|
static Site |
getSite(javax.servlet.http.HttpServletRequest request)
Get the
Site object in Session or create it if not present |
public static final String PARAMETER_CODE
public static final String PARAMETER_WEBAPP_URL
public static final String PARAMETER_PAGE
public static final String PARAMETER_PAGE_HACK
public fr.paris.lutece.portal.web.xpages.XPage getPage(javax.servlet.http.HttpServletRequest request, int nMode, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.portal.service.security.UserNotSignedException, fr.paris.lutece.portal.service.message.SiteMessageException
getPage
in interface fr.paris.lutece.portal.web.xpages.XPageApplication
request
- The HTTP request.nMode
- The current mode.plugin
- The pluginfr.paris.lutece.portal.service.security.UserNotSignedException
- If the application ask for an user signfr.paris.lutece.portal.service.message.SiteMessageException
- occurs when a site message need to be displayedpublic static Site getSite(javax.servlet.http.HttpServletRequest request)
Site
object in Session or create it if not presentrequest
- The HttpServletRequest
Site
objectpublic static String getRequestUrl(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest
Copyright © 2018 City of Paris. All rights reserved.