public.javadoc.org.spincast.plugins.timezoneresolver.config.SpincastTimeZoneResolverConfigDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
SpincastTimeZoneResolverConfigDefault (org.spincast:spincast-framework 1.0.0 API)
org.spincast.plugins.timezoneresolver.config
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
Constructor and Description
SpincastTimeZoneResolverConfigDefault(SpincastConfig spincastConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods
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?
-
-
Constructor Detail
-
SpincastTimeZoneResolverConfigDefault
@Inject
public SpincastTimeZoneResolverConfigDefault(SpincastConfig spincastConfig)
-
Method Detail
-
getSpincastConfig
protected SpincastConfig getSpincastConfig()
-
isRefreshPageAfterAddingPebbleTimeZoneCookie
public boolean isRefreshPageAfterAddingPebbleTimeZoneCookie()
Description copied from interface: SpincastTimeZoneResolverConfig
Should 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:
isRefreshPageAfterAddingPebbleTimeZoneCookie
in interface SpincastTimeZoneResolverConfig
-
getPebbleTimeZoneCookieDomain
public String getPebbleTimeZoneCookieDomain()
Description copied from interface: SpincastTimeZoneResolverConfig
The domain to use for the TimeZone coookie.
Default to "." + the app domain, which makes
the cookie available to all sud domains.
- Specified by:
getPebbleTimeZoneCookieDomain
in interface SpincastTimeZoneResolverConfig
-
getPebbleTimeZoneCookiePath
public String getPebbleTimeZoneCookiePath()
Description copied from interface: SpincastTimeZoneResolverConfig
The path to use for the TimeZone coookie.
Defaults to "/".
- Specified by:
getPebbleTimeZoneCookiePath
in interface SpincastTimeZoneResolverConfig
-
getPebbleTimeZoneCookieReloadingQsParamName
public String getPebbleTimeZoneCookieReloadingQsParamName()
Description copied from interface: SpincastTimeZoneResolverConfig
The 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:
getPebbleTimeZoneCookieReloadingQsParamName
in interface SpincastTimeZoneResolverConfig
-
getPebbleTimeZoneCookieExpiredHoursNbr
public int getPebbleTimeZoneCookieExpiredHoursNbr()
Description copied from interface: SpincastTimeZoneResolverConfig
The number of hours the timeZone cookie will
live.
Defaults to 10 years.
- Specified by:
getPebbleTimeZoneCookieExpiredHoursNbr
in interface SpincastTimeZoneResolverConfig
Copyright © 2019. All rights reserved.