public.javadoc.org.spincast.core.cookies.CookieFactory.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.
CookieFactory (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.cookies
Interface CookieFactory
-
public interface CookieFactory
Factory to create cookies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
Cookie
createCookie(String name)
Creates a cookie using the given name (null
value).
Cookie
createCookie(String name,
String value)
Creates a cookie using the given name and value.
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.
-
-
Method Detail
-
createCookie
Cookie createCookie(String name)
Creates a cookie using the given name (null
value).
By default, the public host (SpincastConfig.getPublicServerHost()
)
is uses as the cookie's domain
and the cookie is valid for the time
of the session only.
-
createCookie
Cookie createCookie(String name,
String value)
Creates a cookie using the given name and value.
By default, the public host (SpincastConfig.getPublicServerHost()
)
is uses as the cookie's domain
and the cookie is valid for the time
of the session only.
Copyright © 2019. All rights reserved.