Enum CookieBlockedReason
- java.lang.Object
-
- java.lang.Enum<CookieBlockedReason>
-
- org.openqa.selenium.devtools.network.model.CookieBlockedReason
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CookieBlockedReason>
@Beta public enum CookieBlockedReason extends java.lang.Enum<CookieBlockedReason>
Types of reasons why a cookie may not be sent with a request.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOMAINMISMATCHNOTONPATHSAMESITELAXSAMESITENONEINSECURESAMESITESTRICTSAMESITEUNSPECIFIEDTREATEDASLAXSECUREONLYUNKNOWNERRORUSERPREFERENCES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CookieBlockedReasonfromString(java.lang.String s)java.lang.StringtoJson()java.lang.StringtoString()static CookieBlockedReasonvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CookieBlockedReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECUREONLY
public static final CookieBlockedReason SECUREONLY
-
NOTONPATH
public static final CookieBlockedReason NOTONPATH
-
DOMAINMISMATCH
public static final CookieBlockedReason DOMAINMISMATCH
-
SAMESITESTRICT
public static final CookieBlockedReason SAMESITESTRICT
-
SAMESITELAX
public static final CookieBlockedReason SAMESITELAX
-
SAMESITEUNSPECIFIEDTREATEDASLAX
public static final CookieBlockedReason SAMESITEUNSPECIFIEDTREATEDASLAX
-
SAMESITENONEINSECURE
public static final CookieBlockedReason SAMESITENONEINSECURE
-
USERPREFERENCES
public static final CookieBlockedReason USERPREFERENCES
-
UNKNOWNERROR
public static final CookieBlockedReason UNKNOWNERROR
-
-
Method Detail
-
values
public static CookieBlockedReason[] 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 (CookieBlockedReason c : CookieBlockedReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CookieBlockedReason valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fromString
public static CookieBlockedReason fromString(java.lang.String s)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<CookieBlockedReason>
-
toJson
public java.lang.String toJson()
-
-