Deprecated
since 6.0.
as of 6.0 in favor of using CSS, without direct replacement
org.springframework.web.servlet.ThemeResolver
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_PARAM_NAME
Default name of the theme specification parameter: "theme". |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getParamName()
Return the name of the parameter that contains a theme specification in a theme change request. |
| public boolean | preHandle(HttpServletRequest
current HTTP request request, HttpServletResponse current HTTP response response, Object chosen handler to execute, for type and/or instance evaluation handler)Overrides default org. Interception point before the execution of a handler. |
| public void | setParamName(String paramName)
Set the name of the parameter that contains a theme specification in a theme change request. |
| DEFAULT_PARAM_NAME | back to summary |
|---|---|
| public static final String DEFAULT_PARAM_NAME Default name of the theme specification parameter: "theme". | |
| paramName | back to summary |
|---|---|
| private String paramName | |
| ThemeChangeInterceptor | back to summary |
|---|---|
| public ThemeChangeInterceptor() | |
| getParamName | back to summary |
|---|---|
| public String getParamName() Return the name of the parameter that contains a theme specification in a theme change request. | |
| preHandle | back to summary |
|---|---|
| public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws ServletException Overrides default org. Doc from org. Interception point before the execution of a handler. Called after HandlerMapping determined an appropriate handler object, but before HandlerAdapter invokes the handler. DispatcherServlet processes a handler in an execution chain, consisting of any number of interceptors, with the handler itself at the end. With this method, each interceptor can decide to abort the execution chain, typically sending an HTTP error or writing a custom response. Note special considerations apply for asynchronous
request processing. For more details see
The default implementation returns
| |
| setParamName | back to summary |
|---|---|
| public void setParamName(String paramName) Set the name of the parameter that contains a theme specification in a theme change request. Default is "theme". | |