| Modifier and Type | Class and Description |
|---|---|
| public static enum | HttpSetCookie.
Represents samesite-value for the SameSite attribute. |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable CharSequence | |
| public @Nullable CharSequence | |
| public default @Nullable Long | Returns: The maximum age of thisHttpSetCookie, but computed from the expires() attribute.
Or null if no expires attribute is specified.Return a |
| public boolean | Returns: True if thisHttpSetCookie is HTTP-only or false if it isn'tChecks to see if this |
| public boolean | Returns: True if thisHttpSetCookie is secure, otherwise falseChecks to see if this |
| public @Nullable Long | |
| public @Nullable CharSequence | |
| public @Nullable HttpSetCookie. |
| domain | back to summary |
|---|---|
| public @Nullable CharSequence domain() Returns the domain of this
| |
| expires | back to summary |
|---|---|
| public @Nullable CharSequence expires() Returns the expire date of this
| |
| expiresAsMaxAge | back to summary |
|---|---|
| public default @Nullable Long expiresAsMaxAge() Return a The reference for computing the max age, is the current time when this function is called. The computed time is not cached, so multiple calls may return different computed max-age values, as the moment of expiration approaches.
| |
| isHttpOnly | back to summary |
|---|---|
| public boolean isHttpOnly() Checks to see if this
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Checks to see if this
| |
| maxAge | back to summary |
|---|---|
| public @Nullable Long maxAge() Returns the maximum age of this
| |
| path | back to summary |
|---|---|
| public @Nullable CharSequence path() Returns the path of this
| |
| sameSite | back to summary |
|---|---|
| public @Nullable HttpSetCookie. Get the value for the SameSite attribute.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final HttpSetCookie. | |
| public static final HttpSetCookie. | |
| public static final HttpSetCookie. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static HttpSetCookie. | |
| public static HttpSetCookie. |
| Lax | back to summary |
|---|---|
| public static final HttpSetCookie. | |
| None | back to summary |
|---|---|
| public static final HttpSetCookie. | |
| Strict | back to summary |
|---|---|
| public static final HttpSetCookie. | |
| SameSite | back to summary |
|---|---|
| private SameSite() | |
| valueOf | back to summary |
|---|---|
| public static HttpSetCookie. | |
| values | back to summary |
|---|---|
| public static HttpSetCookie. | |