Top Description Fields Constructors Methods
org.springframework.web.servlet.i18n

public abstract Class AbstractLocaleContextResolver

extends AbstractLocaleResolver
implements LocaleContextResolver
Class Inheritance
All Implemented Interfaces
org.springframework.web.servlet.LocaleContextResolver, org.springframework.web.servlet.LocaleResolver
Known Direct Subclasses
org.springframework.web.servlet.i18n.CookieLocaleResolver, org.springframework.web.servlet.i18n.FixedLocaleResolver, org.springframework.web.servlet.i18n.SessionLocaleResolver
Imports
java.util.TimeZone, org.springframework.lang.Nullable, org.springframework.web.servlet.LocaleContextResolver

Abstract base class for LocaleContextResolver implementations.

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

Author
Juergen Hoeller
Since
4.0
See Also
setDefaultLocale, setDefaultTimeZone

Field Summary

Modifier and TypeField and Description
private TimeZone

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TimeZone
getDefaultTimeZone()

Get the default TimeZone that this resolver is supposed to fall back to, if any.

public void
setDefaultTimeZone(TimeZone defaultTimeZone)

Set a default TimeZone that this resolver will return if no other time zone is found.

Inherited from org.springframework.web.servlet.i18n.AbstractLocaleResolver:
getDefaultLocalesetDefaultLocale

Field Detail

defaultTimeZoneback to summary
private TimeZone defaultTimeZone
Annotations
@Nullable

Constructor Detail

AbstractLocaleContextResolverback to summary
public AbstractLocaleContextResolver()

Method Detail

getDefaultTimeZoneback to summary
public TimeZone getDefaultTimeZone()

Get the default TimeZone that this resolver is supposed to fall back to, if any.

Annotations
@Nullable
setDefaultTimeZoneback to summary
public void setDefaultTimeZone(TimeZone defaultTimeZone)

Set a default TimeZone that this resolver will return if no other time zone is found.