Package org.zkoss.zul.theme
Class CookieThemeResolver
- java.lang.Object
-
- org.zkoss.zul.theme.CookieThemeResolver
-
- All Implemented Interfaces:
ThemeResolver
public class CookieThemeResolver extends java.lang.Object implements ThemeResolver
A standard implementation of ThemeResolver Retrieves and stores theme names via cookie ZK CE/PE/EE- Since:
- 6.5.2
- Author:
- neillee
-
-
Constructor Summary
Constructors Constructor Description CookieThemeResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getTheme(javax.servlet.http.HttpServletRequest request)
Retrieves theme name from Cookievoid
setTheme(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String themeName)
Stores theme name in Cookie
-
-
-
Method Detail
-
getTheme
public java.lang.String getTheme(javax.servlet.http.HttpServletRequest request)
Retrieves theme name from Cookie- Specified by:
getTheme
in interfaceThemeResolver
- Parameters:
request
-- Returns:
- theme name stored in Cookie, or "" if not found
- Since:
- 6.5.2
-
setTheme
public void setTheme(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String themeName)
Stores theme name in Cookie- Specified by:
setTheme
in interfaceThemeResolver
- Parameters:
request
-response
-themeName
- theme name to be stored in Cookie- Since:
- 6.5.2
-
-