public class SpincastTimeZoneResolverConfigDefault extends Object implements SpincastTimeZoneResolverConfig
| Constructor and Description |
|---|
SpincastTimeZoneResolverConfigDefault(SpincastConfig spincastConfig) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPebbleTimeZoneCookieDomain()
The domain to use for the TimeZone coookie.
|
int |
getPebbleTimeZoneCookieExpiredHoursNbr()
The number of hours the timeZone cookie will
live.
|
String |
getPebbleTimeZoneCookiePath()
The path to use for the TimeZone coookie.
|
String |
getPebbleTimeZoneCookieReloadingQsParamName()
The name of the querystring parameter that
will be used is reloading the page after the
timeZone cookie is set is enabled.
|
protected SpincastConfig |
getSpincastConfig() |
boolean |
isRefreshPageAfterAddingPebbleTimeZoneCookie()
Should the page be refreshed once the TimeZone
cookie has been set for the first time?
|
@Inject public SpincastTimeZoneResolverConfigDefault(SpincastConfig spincastConfig)
protected SpincastConfig getSpincastConfig()
public boolean isRefreshPageAfterAddingPebbleTimeZoneCookie()
SpincastTimeZoneResolverConfig
This allows you to obtain the timeZone of the user
even before rendering the very first page he visits.
Simply put {{ timeZoneCookie(true) }}
very high in the header of the page!
Defaults to true.
isRefreshPageAfterAddingPebbleTimeZoneCookie in interface SpincastTimeZoneResolverConfigpublic String getPebbleTimeZoneCookieDomain()
SpincastTimeZoneResolverConfiggetPebbleTimeZoneCookieDomain in interface SpincastTimeZoneResolverConfigpublic String getPebbleTimeZoneCookiePath()
SpincastTimeZoneResolverConfigDefaults to "/".
getPebbleTimeZoneCookiePath in interface SpincastTimeZoneResolverConfigpublic String getPebbleTimeZoneCookieReloadingQsParamName()
SpincastTimeZoneResolverConfigDefaults to "spincast_tz".
getPebbleTimeZoneCookieReloadingQsParamName in interface SpincastTimeZoneResolverConfigpublic int getPebbleTimeZoneCookieExpiredHoursNbr()
SpincastTimeZoneResolverConfigDefaults to 10 years.
getPebbleTimeZoneCookieExpiredHoursNbr in interface SpincastTimeZoneResolverConfigCopyright © 2018. All rights reserved.