public static enum Http.Cookie.SameSite extends Enum<Http.Cookie.SameSite>
Modifier and Type | Method and Description |
---|---|
play.api.mvc.Cookie.SameSite |
asScala() |
static Optional<Http.Cookie.SameSite> |
parse(String sameSite) |
String |
value() |
static Http.Cookie.SameSite |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Http.Cookie.SameSite[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Http.Cookie.SameSite STRICT
public static final Http.Cookie.SameSite LAX
public static final Http.Cookie.SameSite NONE
public static Http.Cookie.SameSite[] values()
for (Http.Cookie.SameSite c : Http.Cookie.SameSite.values()) System.out.println(c);
public static Http.Cookie.SameSite valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
public play.api.mvc.Cookie.SameSite asScala()
public static Optional<Http.Cookie.SameSite> parse(String sameSite)