public final class SiteMessageService extends Object
Modifier and Type | Method and Description |
---|---|
static void |
cleanMessageSession(javax.servlet.http.HttpServletRequest request)
Delete the message in session
|
static SiteMessage |
getMessage(javax.servlet.http.HttpServletRequest request)
Returns the message associated to the current request
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey)
Set the INFO message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
int nMessageType)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
int nMessageType,
String strUrl)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
int nMessageType,
String strUrl,
Map<String,Object> requestParameters)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
int nMessageType,
String strUrl,
String strTitleKey,
Object[] messageArgs)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
int nMessageType)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
int nMessageType,
String strUrl,
String strTitleKey)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
String strTitleKey,
int nMessageType)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nMessageType)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nMessageType,
Map<String,Object> requestParameters)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
Object[] messageArgs,
String strTitleKey,
String strUrl,
String strTarget,
int nMessageType,
Map<String,Object> requestParameters,
String strBackUrl)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static void |
setMessage(javax.servlet.http.HttpServletRequest request,
String strMessageKey,
String strTitleKey,
int nMessageType)
Set the message, store it in session and throw a LuteceSiteMessageException
|
static String |
setSiteMessageUrl(String strRequestUrl)
Set the site message url with parameters if necessary
|
public static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keySiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, int nMessageType) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keynMessageType
- The message typeSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, int nMessageType, String strUrl) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keynMessageType
- The message typestrUrl
- The url of the Ok buttonSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, int nMessageType, String strUrl, Map<String,Object> requestParameters) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keynMessageType
- The message typestrUrl
- The url of the Ok buttonrequestParameters
- The request parameters as a mapSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, String strTitleKey, int nMessageType) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keystrTitleKey
- The title keynMessageType
- The message typeSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, String strTitleKey, int nMessageType) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keymessageArgs
- Message ArgumentsstrTitleKey
- The title keynMessageType
- The message typeSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, int nMessageType) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keymessageArgs
- Message ArgumentsnMessageType
- The message typeSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, int nMessageType, String strUrl, String strTitleKey) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keymessageArgs
- Message argumentsstrTitleKey
- The title keynMessageType
- The message typestrUrl
- The URLSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, int nMessageType, String strUrl, String strTitleKey, Object[] messageArgs) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keymessageArgs
- Message ArgumentsstrUrl
- The forward URLstrTitleKey
- The title keynMessageType
- The message typeSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nMessageType) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keymessageArgs
- Message ArgumentsstrTitleKey
- The title keystrUrl
- The Url of the Ok buttonstrTarget
- The url target if not "_self"nMessageType
- The message typeSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nMessageType, Map<String,Object> requestParameters) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keymessageArgs
- Message ArgumentsstrTitleKey
- The title keystrUrl
- The Url of the Ok buttonstrTarget
- The url target if not "_self"nMessageType
- The message typerequestParameters
- The request parametersSiteMessageException
- occurs when a site message need to be displayedpublic static void setMessage(javax.servlet.http.HttpServletRequest request, String strMessageKey, Object[] messageArgs, String strTitleKey, String strUrl, String strTarget, int nMessageType, Map<String,Object> requestParameters, String strBackUrl) throws SiteMessageException
request
- The HttpRequeststrMessageKey
- The message keymessageArgs
- Message ArgumentsstrTitleKey
- The title keystrUrl
- The Url of the Ok buttonstrTarget
- The url target if not "_self"nMessageType
- The message typerequestParameters
- The request parametersstrBackUrl
- The Url of back buttonSiteMessageException
- occurs when a site message need to be displayedpublic static SiteMessage getMessage(javax.servlet.http.HttpServletRequest request)
request
- The HttpRequestpublic static void cleanMessageSession(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestCopyright © 2020 City of Paris. All rights reserved.