public interface CookieFactory
| 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.
|
Cookie createCookie(String 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.
Cookie createCookie(String name, String 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.