Package org.spincast.core.cookies
Interface CookieFactory
public interface CookieFactory
Factory to create cookies.
-
Method Summary
Modifier and TypeMethodDescriptioncreateCookie
(String name) Creates a cookie using the given name (null
value).createCookie
(String name, String value) Creates a cookie using the given name and value.createCookie
(String name, String value, String path, String domain, Date expires, boolean secure, boolean httpOnly, CookieSameSite cookieSameSite, boolean discard, int version) Creates a cookie using all available configurations.
-
Method Details
-
createCookie
Creates a cookie using the given name (null
value).By default, the public host (
SpincastConfig.getPublicServerHost()
) is uses as the cookie'sdomain
and the cookie is valid for the time of the session only. -
createCookie
Creates a cookie using the given name and value.By default, the public host (
SpincastConfig.getPublicServerHost()
) is uses as the cookie'sdomain
and the cookie is valid for the time of the session only. -
createCookie
Cookie createCookie(String name, String value, String path, String domain, Date expires, boolean secure, boolean httpOnly, CookieSameSite cookieSameSite, boolean discard, int version) Creates a cookie using all available configurations.
-