Implementation of ThemeResolver that uses a cookie sent back to the user
in case of a custom setting, with a fallback to the default theme.
This is particularly useful for stateless applications without user sessions.
Custom controllers can thus override the user's theme by calling
setThemeName, e.g. responding to a certain theme change request.
author: Jean-Pierre Pawlak author: Juergen Hoeller since: 17.06.2003 See Also:CookieThemeResolver.setThemeName
final public static String DEFAULT_COOKIE_NAME(Code)
ORIGINAL_DEFAULT_THEME_NAME
final public static String ORIGINAL_DEFAULT_THEME_NAME(Code)
THEME_REQUEST_ATTRIBUTE_NAME
final public static String THEME_REQUEST_ATTRIBUTE_NAME(Code)
Name of the request attribute that holds the theme name. Only used
for overriding a cookie value if the theme has been changed in the
course of the current request! Use RequestContext.getTheme() to
retrieve the current theme in controllers or views.
See Also:org.springframework.web.servlet.support.RequestContext.getTheme