| java.lang.Object | ||
| ↳ | org.springframework.web.servlet.handler.HandlerInterceptorAdapter | |
| ↳ | org.springframework.web.servlet.theme.ThemeChangeInterceptor | |
Interceptor that allows for changing the current theme on every request, via a configurable request parameter.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | DEFAULT_PARAM_NAME | Default name of the theme specification parameter: "theme". | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the name of the parameter that contains a theme specification
in a theme change request.
| |||||||||||
This implementation always returns
true. | |||||||||||
Set the name of the parameter that contains a theme specification
in a theme 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 theme specification parameter: "theme".
Return the name of the parameter that contains a theme specification in a theme 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 theme specification in a theme change request. Default is "theme".