public class ThemeChangeInterceptor extends HandlerInterceptorAdapter
ThemeResolver| Modifier and Type | Field and Description | 
|---|---|
static String | 
DEFAULT_PARAM_NAME
Default name of the theme specification parameter: "theme". 
 | 
| Constructor and Description | 
|---|
ThemeChangeInterceptor()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getParamName()
Return the name of the parameter that contains a theme specification
 in a theme change request. 
 | 
boolean | 
preHandle(HttpServletRequest request,
         HttpServletResponse response,
         Object handler)
This implementation always returns  
true. | 
void | 
setParamName(String paramName)
Set the name of the parameter that contains a theme specification
 in a theme change request. 
 | 
afterCompletion, afterConcurrentHandlingStarted, postHandlepublic static final String DEFAULT_PARAM_NAME
public void setParamName(String paramName)
public String getParamName()
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws ServletException
HandlerInterceptorAdaptertrue.preHandle in interface HandlerInterceptorpreHandle in class HandlerInterceptorAdapterrequest - current HTTP requestresponse - current HTTP responsehandler - chosen handler to execute, for type and/or instance evaluationtrue 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