Top Fields Constructors Methods
io.undertow.server.handlers

public final Enum CookieSameSiteMode

extends Enum<CookieSameSiteMode>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
label

Just use a human friendly label instead of the capitalized name.

public static final CookieSameSiteMode
LAX

Same-site cookies are withheld on cross-site subrequests, such as calls to load images or frames, but will be sent when a user navigates to the URL from an external site; for example, by following a link.

public static final CookieSameSiteMode
NONE

The browser will send cookies with both cross-site requests and same-site requests.

private static final CookieSameSiteMode[]
public static final CookieSameSiteMode
STRICT

The browser will only send cookies for same-site requests (requests originating from the site that set the cookie).

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

A name of SameSite mode. Returns null if an invalid SameSite mode is specified.
lookupModeString
(String mode)

lookup from the specified value and return a correct SameSiteMode string.

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static CookieSameSiteMode
public static CookieSameSiteMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

labelback to summary
private final String label

Just use a human friendly label instead of the capitalized name.

LAXback to summary
public static final CookieSameSiteMode LAX

Same-site cookies are withheld on cross-site subrequests, such as calls to load images or frames, but will be sent when a user navigates to the URL from an external site; for example, by following a link.

NONEback to summary
public static final CookieSameSiteMode NONE

The browser will send cookies with both cross-site requests and same-site requests.

SAMESITE_MODESback to summary
private static final CookieSameSiteMode[] SAMESITE_MODES
STRICTback to summary
public static final CookieSameSiteMode STRICT

The browser will only send cookies for same-site requests (requests originating from the site that set the cookie). If the request originated from a different URL than the URL of the current location, none of the cookies tagged with the Strict attribute will be included.

Constructor Detail

CookieSameSiteModeback to summary
private CookieSameSiteMode(String label)

Method Detail

lookupModeStringback to summary
public static String lookupModeString(String mode)

lookup from the specified value and return a correct SameSiteMode string.

Returns:String

A name of SameSite mode. Returns null if an invalid SameSite mode is specified.

toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

Annotations
@Override
valueOfback to summary
public static CookieSameSiteMode valueOf(String name)
valuesback to summary
public static CookieSameSiteMode[] values()