| java.lang.Object | ||
| ↳ | org.springframework.web.servlet.i18n.AbstractLocaleResolver | |
| ↳ | org.springframework.web.servlet.i18n.FixedLocaleResolver | |
LocaleResolver implementation
that always returns a fixed default locale. Default is the current
JVM's default locale.
Note: Does not support setLocale, as the fixed locale
cannot be changed.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a default FixedLocaleResolver, exposing a configured default
locale (or the JVM's default locale as fallback).
| |||||||||||
Create a FixedLocaleResolver that exposes the given locale.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.servlet.i18n.AbstractLocaleResolver
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.web.servlet.LocaleResolver
| |||||||||||
Create a default FixedLocaleResolver, exposing a configured default locale (or the JVM's default locale as fallback).
Create a FixedLocaleResolver that exposes the given locale.
| locale | the locale to expose |
|---|