public enum SameSiteCookies extends java.lang.Enum<SameSiteCookies>
| Enum Constant and Description |
|---|
LAX
Cookie is only sent on same-site requests and cross-site top level navigation GET requests
|
NONE
Don't set the SameSite cookie attribute.
|
STRICT
Prevents the cookie from being sent by the browser in all cross-site requests
|
| Modifier and Type | Method and Description |
|---|---|
static SameSiteCookies |
fromString(java.lang.String value) |
java.lang.String |
getValue() |
static SameSiteCookies |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SameSiteCookies[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SameSiteCookies NONE
public static final SameSiteCookies LAX
public static final SameSiteCookies STRICT
public static SameSiteCookies[] values()
for (SameSiteCookies c : SameSiteCookies.values()) System.out.println(c);
public static SameSiteCookies valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getValue()
public static SameSiteCookies fromString(java.lang.String value)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.