java.lang.Object | ||
↳ | org.springframework.web.servlet.handler.HandlerInterceptorAdapter | |
↳ | org.springframework.web.servlet.i18n.LocaleChangeInterceptor |
Interceptor that allows for changing the current locale on every request, via a configurable request parameter.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_PARAM_NAME | Default name of the locale specification parameter: "locale". |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the name of the parameter that contains a locale specification
in a locale change request.
| |||||||||||
This implementation always returns
true . | |||||||||||
Set the name of the parameter that contains a locale specification
in a locale change request.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.web.servlet.HandlerInterceptor
|
Default name of the locale specification parameter: "locale".
Return the name of the parameter that contains a locale specification in a locale change request.
This implementation always returns true
.
request | current HTTP request |
---|---|
response | current HTTP response |
handler | chosen handler to execute, for type and/or instance evaluation |
true
if the execution chain should proceed with the
next interceptor or the handler itself. Else, DispatcherServlet assumes
that this interceptor has already dealt with the response itself.ServletException |
---|
Set the name of the parameter that contains a locale specification in a locale change request. Default is "locale".