Class Locales

java.lang.Object
org.openxava.util.Locales

public class Locales extends Object
Access to the locale associated to the current thread.

Author:
Javier Paniza
  • Constructor Details

    • Locales

      public Locales()
  • Method Details

    • getCurrent

      public static Locale getCurrent()
      The Locale associated to the current thread.

      Returns:
      Never null. If no locale associated, return default Locale.
    • setCurrent

      public static void setCurrent(Locale locale)
      Associated a Locale to the current thread.

    • setCurrent

      public static void setCurrent(javax.servlet.http.HttpServletRequest request)
      Associated the Locale of the request to the current thread.