public static enum Http.Cookie.SameSite extends java.lang.Enum<Http.Cookie.SameSite>
Modifier and Type | Method and Description |
---|---|
play.api.mvc.Cookie.SameSite |
asScala() |
static java.util.Optional<Http.Cookie.SameSite> |
parse(java.lang.String sameSite) |
java.lang.String |
value() |
static Http.Cookie.SameSite |
valueOf(java.lang.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 Http.Cookie.SameSite[] values()
for (Http.Cookie.SameSite c : Http.Cookie.SameSite.values()) System.out.println(c);
public static Http.Cookie.SameSite 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 value()
public play.api.mvc.Cookie.SameSite asScala()
public static java.util.Optional<Http.Cookie.SameSite> parse(java.lang.String sameSite)