Class AbstractLocaleContextResolver

java.lang.Object
org.springframework.web.servlet.i18n.AbstractLocaleResolver
org.springframework.web.servlet.i18n.AbstractLocaleContextResolver
All Implemented Interfaces:
LocaleContextResolver, LocaleResolver
Direct Known Subclasses:
FixedLocaleResolver, SessionLocaleResolver

public abstract class AbstractLocaleContextResolver extends AbstractLocaleResolver implements LocaleContextResolver
Abstract base class for LocaleContextResolver implementations.

Provides support for a default locale and a default time zone.

Since:
4.0
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • AbstractLocaleContextResolver

      public AbstractLocaleContextResolver()
  • Method Details

    • setDefaultTimeZone

      public void setDefaultTimeZone(@Nullable TimeZone defaultTimeZone)
      Set a default TimeZone that this resolver will return if no other time zone is found.
    • getDefaultTimeZone

      @Nullable public TimeZone getDefaultTimeZone()
      Get the default TimeZone that this resolver is supposed to fall back to, if any.