public class PortalJspBean extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MODE_ADMIN |
static int |
MODE_HTML |
Constructor and Description |
---|
PortalJspBean() |
Modifier and Type | Method and Description |
---|---|
String |
getContent(javax.servlet.http.HttpServletRequest request)
Returns the content of a page according to the parameters found in the http
request.
|
String |
getContent(javax.servlet.http.HttpServletRequest request,
int nMode)
Returns the content of a page according to the parameters found in the http
request.
|
String |
getCredits(javax.servlet.http.HttpServletRequest request)
Returns the code for the popup of the credits
|
String |
getError404Page(javax.servlet.http.HttpServletRequest request)
Returns the 404 Error page
|
String |
getError500Page(javax.servlet.http.HttpServletRequest request,
String strCause)
Returns the 500 Error page
|
String |
getError500Page(javax.servlet.http.HttpServletRequest request,
Throwable exception)
Returns the 500 Error page
|
String |
getLegalInfos(javax.servlet.http.HttpServletRequest request)
Returns the code for the popup of the legal infos
|
static String |
getLoginNextUrl(javax.servlet.http.HttpServletRequest request)
Returns the url (asked before login) to redirect after login
|
String |
getSiteMessageContent(javax.servlet.http.HttpServletRequest request)
Returns the content of a page according to the parameters found in the http
request.
|
String |
getSiteMessageContent(javax.servlet.http.HttpServletRequest request,
int nMode)
Returns the content of a page according to the parameters found in the http
request.
|
String |
getStartUpFailurePage(javax.servlet.http.HttpServletRequest request)
Returns the code for the popup of the credits
|
static String |
getUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
Get the upload filter site next url
|
static String |
redirectLogin(javax.servlet.http.HttpServletRequest request)
This method is called by Portal.jsp when it caught an UserNotSignedException.
|
static void |
removeUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
Remove the upload filter next url from the session
|
static String |
sendResource(javax.servlet.http.HttpServletRequest request)
Do send a resource
|
static void |
setUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
Set the upload filter site next url
|
public static final int MODE_HTML
public static final int MODE_ADMIN
public String getContent(javax.servlet.http.HttpServletRequest request) throws UserNotSignedException, SiteMessageException
request
- The http requestUserNotSignedException
- The UserNotSignedExceptionSiteMessageException
- occurs when a site message need to be
displayedpublic String getContent(javax.servlet.http.HttpServletRequest request, int nMode) throws UserNotSignedException, SiteMessageException
request
- The http requestnMode
- The mode (normal or administration)UserNotSignedException
- The UserNotSignedExceptionSiteMessageException
- occurs when a site message need to be
displayedpublic String getSiteMessageContent(javax.servlet.http.HttpServletRequest request)
request
- The http requestpublic String getSiteMessageContent(javax.servlet.http.HttpServletRequest request, int nMode)
request
- The http requestnMode
- The mode (normal or administration)public String getStartUpFailurePage(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestpublic String getCredits(javax.servlet.http.HttpServletRequest request)
request
- The Http Requestpublic String getLegalInfos(javax.servlet.http.HttpServletRequest request)
request
- The Http Requestpublic String getError404Page(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestpublic String getError500Page(javax.servlet.http.HttpServletRequest request, Throwable exception)
request
- The HTTP requestexception
- The Exceptionpublic String getError500Page(javax.servlet.http.HttpServletRequest request, String strCause)
request
- The HTTP requeststrCause
- The messagepublic static String redirectLogin(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestpublic static String getLoginNextUrl(javax.servlet.http.HttpServletRequest request)
request
- The Http requestpublic static void setUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
request
- the HTTP requestpublic static String getUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
request
- the HTTP requestpublic static void removeUploadFilterSiteNextUrl(javax.servlet.http.HttpServletRequest request)
request
- the HTTP requestpublic static String sendResource(javax.servlet.http.HttpServletRequest request) throws SiteMessageException
request
- The requestSiteMessageException
- If the resource or its associated service is not
foundCopyright © 2020 City of Paris. All rights reserved.