Top Description Fields Constructors Methods
org.springframework.web.servlet.theme

public Class FixedThemeResolver

extends AbstractThemeResolver
Class Inheritance
Annotations
@Deprecated
since:6.0
Imports
jakarta.servlet.http.HttpServletRequest, .HttpServletResponse, org.springframework.lang.Nullable

Deprecated

since 6.0.

as of 6.0 in favor of using CSS, without direct replacement

org.springframework.web.servlet.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.

Authors
Jean-Pierre Pawlak, Juergen Hoeller
Since
17.06.2003
See Also
setDefaultThemeName

Field Summary

Inherited from org.springframework.web.servlet.theme.AbstractThemeResolver:
ORIGINAL_DEFAULT_THEME_NAME

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
resolveThemeName(HttpServletRequest
the request to be used for resolution
request
)

Implements org.springframework.web.servlet.ThemeResolver.resolveThemeName.

Resolve the current theme name via the given request.

public void
setThemeName(HttpServletRequest
the request to be used for theme name modification
request
,
HttpServletResponse
the response to be used for theme name modification
response
,
String
the new theme name (null or empty to reset it)
themeName
)

Implements org.springframework.web.servlet.ThemeResolver.setThemeName.

Set the current theme name to the given one.

Inherited from org.springframework.web.servlet.theme.AbstractThemeResolver:
getDefaultThemeNamesetDefaultThemeName

Constructor Detail

FixedThemeResolverback to summary
public FixedThemeResolver()

Method Detail

resolveThemeNameback to summary
public String resolveThemeName(HttpServletRequest request)

Implements org.springframework.web.servlet.ThemeResolver.resolveThemeName.

Doc from org.springframework.web.servlet.ThemeResolver.resolveThemeName.

Resolve the current theme name via the given request. Should return a default theme as fallback in any case.

Parameters
request:HttpServletRequest

the request to be used for resolution

Returns:String

the current theme name

Annotations
@Override
setThemeNameback to summary
public void setThemeName(HttpServletRequest request, HttpServletResponse response, String themeName)

Implements org.springframework.web.servlet.ThemeResolver.setThemeName.

Doc from org.springframework.web.servlet.ThemeResolver.setThemeName.

Set the current theme name to the given one.

Parameters
request:HttpServletRequest

the request to be used for theme name modification

response:HttpServletResponse

the response to be used for theme name modification

themeName:String

the new theme name (null or empty to reset it)

Annotations
@Override