org.springframework.web.servlet.i18n

Class AbstractLocaleResolver

  • java.lang.Object
    • org.springframework.web.servlet.i18n.AbstractLocaleResolver
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected java.util.Locale getDefaultLocale()
      Return the default Locale that this resolver is supposed to fall back to, if any.
      void setDefaultLocale(java.util.Locale defaultLocale)
      Set a default Locale that this resolver will return if no other locale found.
      • Methods inherited from class java.lang.Object

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

      • AbstractLocaleResolver

        public AbstractLocaleResolver()
    • Method Detail

      • setDefaultLocale

        public void setDefaultLocale(@Nullable
                                     java.util.Locale defaultLocale)
        Set a default Locale that this resolver will return if no other locale found.
      • getDefaultLocale

        @Nullable
        protected java.util.Locale getDefaultLocale()
        Return the default Locale that this resolver is supposed to fall back to, if any.