Class FixedThemeResolver
java.lang.Object
org.springframework.web.servlet.theme.AbstractThemeResolver
org.springframework.web.servlet.theme.FixedThemeResolver
- All Implemented Interfaces:
 ThemeResolver
ThemeResolver implementation
 that simply uses a fixed theme. The fixed name can be defined via
 the "defaultThemeName" property; out of the box, it is "theme".
 Note: Does not support setThemeName, as the fixed theme
 cannot be changed.
- Since:
 - 17.06.2003
 - Author:
 - Jean-Pierre Pawlak, Juergen Hoeller
 - See Also:
 
- 
Field Summary
Fields inherited from class org.springframework.web.servlet.theme.AbstractThemeResolver
ORIGINAL_DEFAULT_THEME_NAME - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionresolveThemeName(HttpServletRequest request) Resolve the current theme name via the given request.voidsetThemeName(HttpServletRequest request, HttpServletResponse response, String themeName) Set the current theme name to the given one.Methods inherited from class org.springframework.web.servlet.theme.AbstractThemeResolver
getDefaultThemeName, setDefaultThemeName 
- 
Constructor Details
- 
FixedThemeResolver
public FixedThemeResolver() 
 - 
 - 
Method Details
- 
resolveThemeName
Description copied from interface:ThemeResolverResolve the current theme name via the given request. Should return a default theme as fallback in any case.- Parameters:
 request- the request to be used for resolution- Returns:
 - the current theme name
 
 - 
setThemeName
public void setThemeName(HttpServletRequest request, @Nullable HttpServletResponse response, @Nullable String themeName) Description copied from interface:ThemeResolverSet the current theme name to the given one.- Parameters:
 request- the request to be used for theme name modificationresponse- the response to be used for theme name modificationthemeName- the new theme name (nullor empty to reset it)
 
 -