Enum Request.ReferrerPolicy
- java.lang.Object
-
- java.lang.Enum<Request.ReferrerPolicy>
-
- org.openqa.selenium.devtools.network.model.Request.ReferrerPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Request.ReferrerPolicy>
- Enclosing class:
- Request
public static enum Request.ReferrerPolicy extends java.lang.Enum<Request.ReferrerPolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_REFERRER
NO_REFERRER_WHEN_DOWNGRADE
ORIGIN
ORIGIN_WHEN_CROSS_ORIGIN
SAME_ORIGIN
STRICT_ORIGIN
STRICT_ORIGIN_WHEN_CROSS_ORIGIN
UNSAFE_URL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Request.ReferrerPolicy
fromString(java.lang.String s)
java.lang.String
toJson()
java.lang.String
toString()
static Request.ReferrerPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Request.ReferrerPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSAFE_URL
public static final Request.ReferrerPolicy UNSAFE_URL
-
NO_REFERRER_WHEN_DOWNGRADE
public static final Request.ReferrerPolicy NO_REFERRER_WHEN_DOWNGRADE
-
NO_REFERRER
public static final Request.ReferrerPolicy NO_REFERRER
-
ORIGIN
public static final Request.ReferrerPolicy ORIGIN
-
ORIGIN_WHEN_CROSS_ORIGIN
public static final Request.ReferrerPolicy ORIGIN_WHEN_CROSS_ORIGIN
-
SAME_ORIGIN
public static final Request.ReferrerPolicy SAME_ORIGIN
-
STRICT_ORIGIN
public static final Request.ReferrerPolicy STRICT_ORIGIN
-
STRICT_ORIGIN_WHEN_CROSS_ORIGIN
public static final Request.ReferrerPolicy STRICT_ORIGIN_WHEN_CROSS_ORIGIN
-
-
Method Detail
-
values
public static Request.ReferrerPolicy[] 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 (Request.ReferrerPolicy c : Request.ReferrerPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Request.ReferrerPolicy 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 Request.ReferrerPolicy fromString(java.lang.String s)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Request.ReferrerPolicy>
-
toJson
public java.lang.String toJson()
-
-