Package de.uplanet.lucy.server
Klasse ContextLanguage
java.lang.Object
de.uplanet.lucy.server.ContextLanguage
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Stringget(IServerBridgeRequest p_request, ISession p_session) Get the language that's associated with the current execution context.static Stringget(IProcessingContext p_ctx) static StringGet the language that's associated with the current execution context.
-
Methodendetails
-
get
- Parameter:
p_ctx- The processing context (could benull). Get the language for the given processing context.- Siehe auch:
-
get
Get the language that's associated with the current execution context.The returned value is given by, in order,
- the request's query string parameter
QSVAR.RQ_LANG, - the request's cookie
COOKIE.LANG, - the given session's
SESSVAR.LANG, - the given session user's
defaultLanguage, if it exists, - a language from the requests
Accept-Languageheader, if applicable, or - the value given by
DefaultLanguage.get().
- Parameter:
p_request- A request object, ornull.p_session- A session object, ornull.- Gibt zurück:
- A language identifier, normalized in Intrexx format, for example de-ch
- the request's query string parameter
-
get
Get the language that's associated with the current execution context.The returned value is given by, in order,
- the request's query string parameter
QSVAR.RQ_LANG, - the request's cookie
COOKIE.LANG, - the given session's
SESSVAR.LANG, - the given session user's
defaultLanguage, if it exists, - a language from the requests
Accept-Languageheader, if applicable, or - the value given by
DefaultLanguage.get().
- Parameter:
p_request- A request object, ornull.p_session- A session object, ornull.- Gibt zurück:
- A language identifier, normalized in Intrexx format, for example de-ch
- the request's query string parameter
-