Package de.uplanet.lucy.server
Class ContextLocale
- java.lang.Object
-
- de.uplanet.lucy.server.ContextLocale
-
@Scriptable public final class ContextLocale extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ILocaleget(IServerBridgeRequest p_request, ISession p_session)Get the locale that's associated with the current execution context.static ILocaleget(IProcessingContext p_ctx)
-
-
-
Method Detail
-
get
public static ILocale get(IProcessingContext p_ctx)
- Parameters:
p_ctx- The processing context (could benull). Get the locale for the given processing context.- See Also:
get(IServerBridgeRequest, de.uplanet.lucy.server.session.ISession)
-
get
public static ILocale get(IServerBridgeRequest p_request, ISession p_session)
Get the locale that's associated with the current execution context.The returned value is given by, in order,
- the request's cookie
COOKIE.LOCALE, - the given session's
SESSVAR.LOCALE, - the given session user's
defaultLocale, if it exists, or - the value given by
DefaultLocale.get().
- Parameters:
p_request- A request object, ornull.p_session- A session object, ornull.- Returns:
- A locale.
- the request's cookie
-
-