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

public abstract Class AbstractLocaleResolver

extends Object
implements LocaleResolver
Class Inheritance
All Implemented Interfaces
org.springframework.web.servlet.LocaleResolver
Known Direct Subclasses
org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver, org.springframework.web.servlet.i18n.AbstractLocaleContextResolver
Imports
java.util.Locale, org.springframework.lang.Nullable, org.springframework.web.servlet.LocaleResolver

Abstract base class for LocaleResolver implementations.

Provides support for a default locale.

Author
Juergen Hoeller
Since
1.2.9
See Also
setDefaultLocale

Field Summary

Modifier and TypeField and Description
private Locale

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Locale
getDefaultLocale()

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

public void
setDefaultLocale(Locale defaultLocale)

Set a default Locale that this resolver will return if no other locale is found.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultLocaleback to summary
private Locale defaultLocale
Annotations
@Nullable

Constructor Detail

AbstractLocaleResolverback to summary
public AbstractLocaleResolver()

Method Detail

getDefaultLocaleback to summary
protected Locale getDefaultLocale()

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

Annotations
@Nullable
setDefaultLocaleback to summary
public void setDefaultLocale(Locale defaultLocale)

Set a default Locale that this resolver will return if no other locale is found.