Class SpincastTimeZoneResolverConfigDefault
java.lang.Object
org.spincast.plugins.timezoneresolver.config.SpincastTimeZoneResolverConfigDefault
- All Implemented Interfaces:
SpincastTimeZoneResolverConfig
public class SpincastTimeZoneResolverConfigDefault
extends Object
implements SpincastTimeZoneResolverConfig
Default configurations for Spincast TimeZone Resolver plugin.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe domain to use for the TimeZone coookie.intThe number of hours the timeZone cookie will live.The path to use for the TimeZone coookie.The name of the querystring parameter that will be used is reloading the page after the timeZone cookie is set is enabled.protected SpincastConfigbooleanShould the page be refreshed once the TimeZone cookie has been set for the first time?
-
Constructor Details
-
SpincastTimeZoneResolverConfigDefault
-
-
Method Details
-
getSpincastConfig
-
isRefreshPageAfterAddingPebbleTimeZoneCookie
public boolean isRefreshPageAfterAddingPebbleTimeZoneCookie()Description copied from interface:SpincastTimeZoneResolverConfigShould the page be refreshed once the TimeZone cookie has been set for the first time?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.- Specified by:
isRefreshPageAfterAddingPebbleTimeZoneCookiein interfaceSpincastTimeZoneResolverConfig
-
getPebbleTimeZoneCookieDomain
Description copied from interface:SpincastTimeZoneResolverConfigThe domain to use for the TimeZone coookie. Default to "." + the app domain, which makes the cookie available to all sud domains.- Specified by:
getPebbleTimeZoneCookieDomainin interfaceSpincastTimeZoneResolverConfig
-
getPebbleTimeZoneCookiePath
Description copied from interface:SpincastTimeZoneResolverConfigThe path to use for the TimeZone coookie.Defaults to "/".
- Specified by:
getPebbleTimeZoneCookiePathin interfaceSpincastTimeZoneResolverConfig
-
getPebbleTimeZoneCookieReloadingQsParamName
Description copied from interface:SpincastTimeZoneResolverConfigThe name of the querystring parameter that will be used is reloading the page after the timeZone cookie is set is enabled.Defaults to "spincast_tz".
- Specified by:
getPebbleTimeZoneCookieReloadingQsParamNamein interfaceSpincastTimeZoneResolverConfig
-
getPebbleTimeZoneCookieExpiredHoursNbr
public int getPebbleTimeZoneCookieExpiredHoursNbr()Description copied from interface:SpincastTimeZoneResolverConfigThe number of hours the timeZone cookie will live.Defaults to 10 years.
- Specified by:
getPebbleTimeZoneCookieExpiredHoursNbrin interfaceSpincastTimeZoneResolverConfig
-