org.springframework.web.servlet.i18n |
Locale support classes for Spring's web MVC framework.
Provides standard LocaleResolver implementations,
and a HandlerInterceptor for locale changes.
|
Java Source File Name | Type | Comment |
AbstractLocaleResolver.java | Class | Abstract base class for LocaleResolver implementations. |
AcceptHeaderLocaleResolver.java | Class | Implementation of LocaleResolver that simply uses the primary locale
specified in the "accept-language" header of the HTTP request (that is,
the locale sent by the client browser, normally that of the client's OS). |
CookieLocaleResolver.java | Class | LocaleResolver implementation that uses a cookie sent back to the user
in case of a custom setting, with a fallback to the specified default locale
or the request's accept-header locale. |
FixedLocaleResolver.java | Class | Implementation of LocaleResolver that always returns a fixed default locale. |
LocaleChangeInterceptor.java | Class | Interceptor that allows for changing the current locale on every request,
via a configurable request parameter. |
SessionLocaleResolver.java | Class | Implementation of LocaleResolver that uses a locale attribute in the user's
session in case of a custom setting, with a fallback to the specified default
locale or the request's accept-header locale.
This is most appropriate if the application needs user sessions anyway,
that is, when the HttpSession does not have to be created for the locale.
Custom controllers can override the user's locale by calling
setLocale , e.g. |