Class PersistentLocaleImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Locale get()
      Gets the locale obtained from the request, or null if the response did not indicate a specific locale (in which case the active locale may have been determined from request headers).
      boolean isSet()  
      void set​(java.util.Locale locale)
      Sets the locale value that will be encoded into the response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public java.util.Locale get()
        Description copied from interface: PersistentLocale
        Gets the locale obtained from the request, or null if the response did not indicate a specific locale (in which case the active locale may have been determined from request headers).
        Specified by:
        get in interface PersistentLocale
      • isSet

        public boolean isSet()
        Specified by:
        isSet in interface PersistentLocale
        Returns:
        true if a locale was present in the request URL; false otherwise.