@Scriptable
public final class ContextLanguage
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
get(IProcessingContext p_ctx) |
static java.lang.String |
get(IServerBridgeRequest p_request,
ISession p_session)
Get the language that's associated with the current execution context.
|
public static java.lang.String get(IProcessingContext p_ctx)
p_ctx
- The processing context (could be null
).
Get the language for the given processing context.get(IServerBridgeRequest, ISession)
public static java.lang.String get(IServerBridgeRequest p_request, ISession p_session)
The returned value is given by, in order,
QSVAR.RQ_LANG
,COOKIE.LANG
,SESSVAR.LANG
,defaultLanguage
, if it exists,Accept-Language
header, if applicable, orDefaultLanguage.get()
.p_request
- A request object, or null
.p_session
- A session object, or null
.