public interface HttpSetCookie extends HttpCookiePair
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpSetCookie.SameSite
Represents
samesite-value
for the
SameSite attribute.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
domain()
Returns the domain of this
HttpSetCookie. |
CharSequence |
expires()
Returns the expire date of this
HttpSetCookie according
to Expires. |
boolean |
isHttpOnly()
Checks to see if this
HttpSetCookie can only be accessed via HTTP. |
boolean |
isSecure()
Checks to see if this
HttpSetCookie is secure. |
Long |
maxAge()
Returns the maximum age of this
HttpSetCookie in seconds if specified. |
CharSequence |
path()
Returns the path of this
HttpSetCookie. |
HttpSetCookie.SameSite |
sameSite()
Get the value for the
SameSite attribute.
|
encoded, isWrapped, name, value@Nullable CharSequence domain()
HttpSetCookie.HttpSetCookie@Nullable CharSequence path()
HttpSetCookie.HttpSetCookie's path@Nullable Long maxAge()
HttpSetCookie in seconds if specified.HttpSetCookie. null if none specified.@Nullable CharSequence expires()
HttpSetCookie according
to Expires.HttpSetCookie according
to Expires.@Nullable HttpSetCookie.SameSite sameSite()
boolean isSecure()
HttpSetCookie is secure.HttpSetCookie is secure, otherwise falseboolean isHttpOnly()
HttpSetCookie can only be accessed via HTTP.
If this returns true, the HttpSetCookie cannot be accessed through
client side script - But only if the browser supports it.
For more information, please look hereHttpSetCookie is HTTP-only or false if it isn't