public class CookieSitePreferenceRepository extends org.springframework.web.util.CookieGenerator implements SitePreferenceRepository
Constructor and Description |
---|
CookieSitePreferenceRepository()
Creates a cookie-based SitePreferenceRepository.
|
CookieSitePreferenceRepository(java.lang.String cookieDomain)
Creates a cookie-based SitePreferenceRepository with a custom domain value.
|
Modifier and Type | Method and Description |
---|---|
SitePreference |
loadSitePreference(javax.servlet.http.HttpServletRequest request)
Load the user's site preference.
|
void |
saveSitePreference(SitePreference preference,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Save the user's site preference.
|
addCookie, createCookie, getCookieDomain, getCookieMaxAge, getCookieName, getCookiePath, isCookieHttpOnly, isCookieSecure, removeCookie, setCookieDomain, setCookieHttpOnly, setCookieMaxAge, setCookieName, setCookiePath, setCookieSecure
public CookieSitePreferenceRepository()
org.springframework.mobile.device.site.CookiteSitePreferenceRepository.SITE_PREFERENCE
public CookieSitePreferenceRepository(java.lang.String cookieDomain)
.app.com
.public void saveSitePreference(SitePreference preference, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
SitePreferenceRepository
saveSitePreference
in interface SitePreferenceRepository
public SitePreference loadSitePreference(javax.servlet.http.HttpServletRequest request)
SitePreferenceRepository
loadSitePreference
in interface SitePreferenceRepository