|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.web.servlet.i18n.FixedLocaleResolver
public class FixedLocaleResolver
Implementation of LocaleResolver that always returns a fixed default Locale.
Note: Does not support setLocale, as the fixed Locale
cannot be changed.
| Constructor Summary | |
|---|---|
FixedLocaleResolver()
|
|
| Method Summary | |
|---|---|
Locale |
resolveLocale(HttpServletRequest request)
Resolve the current locale via the given request. |
void |
setDefaultLocale(Locale defaultLocale)
Set the fixed Locale that this resolver will return. |
void |
setLocale(HttpServletRequest request,
HttpServletResponse response,
Locale locale)
Set the current locale to the given one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedLocaleResolver()
| Method Detail |
|---|
public void setDefaultLocale(Locale defaultLocale)
Locale.getDefault()public Locale resolveLocale(HttpServletRequest request)
LocaleResolver
resolveLocale in interface LocaleResolverrequest - request to be used for resolution
public void setLocale(HttpServletRequest request, HttpServletResponse response, Locale locale)
LocaleResolver
setLocale in interface LocaleResolverrequest - request to be used for locale modificationresponse - response to be used for locale modificationlocale - the new locale, or null to clear the locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||