com.interface21.web.servlet.theme
Class FixedThemeResolver

java.lang.Object
  |
  +--com.interface21.web.servlet.theme.AbstractThemeResolver
        |
        +--com.interface21.web.servlet.theme.FixedThemeResolver
All Implemented Interfaces:
ThemeResolver

public class FixedThemeResolver
extends AbstractThemeResolver

Implementation of ThemeResolver that simply uses a fixed theme. The fixed name can be defined via the defaultTheme property.

Note: Does not support setThemeName, as the theme is fixed.

Since:
17.06.2003
Author:
Jean-Pierre Pawlak, Juergen Hoeller
See Also:
AbstractThemeResolver.setDefaultThemeName(java.lang.String)

Fields inherited from class com.interface21.web.servlet.theme.AbstractThemeResolver
ORIGINAL_DEFAULT_THEME_NAME
 
Constructor Summary
FixedThemeResolver()
           
 
Method Summary
 java.lang.String resolveThemeName(javax.servlet.http.HttpServletRequest request)
          Resolve the current theme name via the given request.
 void setThemeName(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String themeName)
          Set the current theme name to the given one.
 
Methods inherited from class com.interface21.web.servlet.theme.AbstractThemeResolver
getDefaultThemeName, setDefaultThemeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedThemeResolver

public FixedThemeResolver()
Method Detail

resolveThemeName

public java.lang.String resolveThemeName(javax.servlet.http.HttpServletRequest request)
Description copied from interface: ThemeResolver
Resolve the current theme name via the given request. Should return a default theme as fallback in any case.
Following copied from interface: com.interface21.web.servlet.ThemeResolver
Parameters:
request - request to be used for resolution
Returns:
the current theme name

setThemeName

public void setThemeName(javax.servlet.http.HttpServletRequest request,
                         javax.servlet.http.HttpServletResponse response,
                         java.lang.String themeName)
Description copied from interface: ThemeResolver
Set the current theme name to the given one.
Following copied from interface: com.interface21.web.servlet.ThemeResolver
Parameters:
request - request to be used for theme name modification
response - response to be used for theme name modification
themeName - the new theme name


Rod Johnson and Spring contributors 2001-2003.