Package org.eclipse.jetty.http
Enum Class HttpCookie.SameSite
- All Implemented Interfaces:
Serializable
,Comparable<HttpCookie.SameSite>
,Constable
- Enclosing interface:
- HttpCookie
The possible values for the SameSite
attribute, defined
in the follow-up of RFC 6265, at the time of this writing defined at
RFC 6265bis.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpCookie.SameSite
static HttpCookie.SameSite
Returns the enum constant of this class with the specified name.static HttpCookie.SameSite[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
The valueNone
for theSameSite
attribute -
STRICT
The valueStrict
for theSameSite
attribute -
LAX
The valueLax
for theSameSite
attribute
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getAttributeValue
- Returns:
- the
SameSite
attribute value
-
from
- Parameters:
sameSite
- theSameSite
attribute value- Returns:
- the enum constant associated with the
SameSite
attribute value, ornull
if the value is not a knownSameSite
attribute value
-