Class AbstractLocaleResolver
java.lang.Object
org.springframework.web.servlet.i18n.AbstractLocaleResolver
- All Implemented Interfaces:
LocaleResolver
- Direct Known Subclasses:
AbstractLocaleContextResolver
Abstract base class for
LocaleResolver implementations.
Provides support for a default locale.- Since:
- 1.2.9
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocaleReturn the default Locale that this resolver is supposed to fall back to, if any.voidsetDefaultLocale(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, waitMethods inherited from interface org.springframework.web.servlet.LocaleResolver
resolveLocale, setLocale
-
Constructor Details
-
AbstractLocaleResolver
public AbstractLocaleResolver()
-
-
Method Details
-
setDefaultLocale
Set a default Locale that this resolver will return if no other locale found. -
getDefaultLocale
Return the default Locale that this resolver is supposed to fall back to, if any.
-