org.springframework.web.server.i18n

Class FixedLocaleContextResolver

  • java.lang.Object
    • org.springframework.web.server.i18n.FixedLocaleContextResolver
    • Constructor Summary

      Constructors 
      Constructor and Description
      FixedLocaleContextResolver()
      Create a default FixedLocaleResolver, exposing a configured default locale (or the JVM's default locale as fallback).
      FixedLocaleContextResolver(java.util.Locale locale)
      Create a FixedLocaleResolver that exposes the given locale.
      FixedLocaleContextResolver(java.util.Locale locale, java.util.TimeZone timeZone)
      Create a FixedLocaleResolver that exposes the given locale and time zone.
    • Constructor Detail

      • FixedLocaleContextResolver

        public FixedLocaleContextResolver()
        Create a default FixedLocaleResolver, exposing a configured default locale (or the JVM's default locale as fallback).
      • FixedLocaleContextResolver

        public FixedLocaleContextResolver(java.util.Locale locale)
        Create a FixedLocaleResolver that exposes the given locale.
        Parameters:
        locale - the locale to expose
      • FixedLocaleContextResolver

        public FixedLocaleContextResolver(java.util.Locale locale,
                                          @Nullable
                                          java.util.TimeZone timeZone)
        Create a FixedLocaleResolver that exposes the given locale and time zone.
        Parameters:
        locale - the locale to expose
        timeZone - the time zone to expose