Klasse ContextLocale

java.lang.Object
de.uplanet.lucy.server.ContextLocale

@Scriptable public final class ContextLocale extends Object
  • Methodendetails

    • get

      public static ILocale get(IProcessingContext p_ctx)
      Parameter:
      p_ctx - The processing context (could be null). Get the locale for the given processing context.
      Siehe auch:
    • 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,

      1. the request's cookie COOKIE.LOCALE,
      2. the given session's SESSVAR.LOCALE,
      3. the given session user's defaultLocale, if it exists, or
      4. the value given by DefaultLocale.get().

      Parameter:
      p_request - A request object, or null.
      p_session - A session object, or null.
      Gibt zurück:
      A locale.
    • get

      public static ILocale get(jakarta.servlet.http.HttpServletRequest p_request, ISession p_session)
      Get the locale that's associated with the current execution context.

      The returned value is given by, in order,

      1. the request's cookie COOKIE.LOCALE,
      2. the given session's SESSVAR.LOCALE,
      3. the given session user's defaultLocale, if it exists, or
      4. the value given by DefaultLocale.get().

      Parameter:
      p_request - A request object, or null.
      p_session - A session object, or null.
      Gibt zurück:
      A locale.