Top Description Fields Constructors Methods
io.vertx.core.http

public final Enum CookieSameSite

extends Enum<CookieSameSite>
Class Inheritance
Annotations
@VertxGen
Imports
io.vertx.codegen.annotations.VertxGen

Represents the Cookie SameSite policy to be used. For more info https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#SameSite_cookies.
Author
Paulo Lopes

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 CookieSameSite
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 CookieSameSite
NONE

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

public static final CookieSameSite
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 String
toString()

Overrides java.lang.Enum.toString.

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

public static CookieSameSite
public static CookieSameSite[]
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 CookieSameSite 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 CookieSameSite NONE

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

STRICTback to summary
public static final CookieSameSite 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

CookieSameSiteback to summary
private CookieSameSite(String label)

Method Detail

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 CookieSameSite valueOf(String name)
valuesback to summary
public static CookieSameSite[] values()