org.springframework.web.servlet.theme
Class ThemeChangeInterceptor
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
|
+--org.springframework.web.servlet.theme.ThemeChangeInterceptor
- public class ThemeChangeInterceptor
- extends HandlerInterceptorAdapter
Interceptor that allows for changing the current theme on every request,
via a configurable request parameter.
- Author:
- Juergen Hoeller
- Since: 20.06.2003
- See Also: ThemeResolver
| Method Summary |
boolean | preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) |
void | setParamName(String paramName) Set the name of the parameter that contains a theme specification
in a theme change request. |
DEFAULT_PARAM_NAME
public final static String DEFAULT_PARAM_NAME
preHandle
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws ServletException
setParamName
public void setParamName(String paramName)
- Set the name of the parameter that contains a theme specification
in a theme change request. Default is "theme".
to Class java.lang.String
to Class java.lang.String