- java.lang.Object
-
- java.lang.Enum<SetCookieHeader.SameSite>
-
- swim.http.header.SetCookieHeader.SameSite
-
- All Implemented Interfaces:
Serializable
,Comparable<SetCookieHeader.SameSite>
- Enclosing class:
- SetCookieHeader
public static enum SetCookieHeader.SameSite extends Enum<SetCookieHeader.SameSite>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SetCookieHeader.SameSite
valueOf(String name)
Returns the enum constant of this type with the specified name.static SetCookieHeader.SameSite[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Strict
public static final SetCookieHeader.SameSite Strict
-
Lax
public static final SetCookieHeader.SameSite Lax
-
None
public static final SetCookieHeader.SameSite None
-
-
Method Detail
-
values
public static SetCookieHeader.SameSite[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SetCookieHeader.SameSite c : SetCookieHeader.SameSite.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SetCookieHeader.SameSite valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-