public static enum ReferrerPolicyHeaderWriter.ReferrerPolicy extends Enum<ReferrerPolicyHeaderWriter.ReferrerPolicy>
Enum Constant and Description |
---|
NO_REFERRER |
NO_REFERRER_WHEN_DOWNGRADE |
ORIGIN |
ORIGIN_WHEN_CROSS_ORIGIN |
SAME_ORIGIN |
STRICT_ORIGIN |
STRICT_ORIGIN_WHEN_CROSS_ORIGIN |
UNSAFE_URL |
Modifier and Type | Method and Description |
---|---|
static ReferrerPolicyHeaderWriter.ReferrerPolicy |
get(String referrerPolicy) |
String |
getPolicy() |
static ReferrerPolicyHeaderWriter.ReferrerPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReferrerPolicyHeaderWriter.ReferrerPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferrerPolicyHeaderWriter.ReferrerPolicy NO_REFERRER
public static final ReferrerPolicyHeaderWriter.ReferrerPolicy NO_REFERRER_WHEN_DOWNGRADE
public static final ReferrerPolicyHeaderWriter.ReferrerPolicy SAME_ORIGIN
public static final ReferrerPolicyHeaderWriter.ReferrerPolicy ORIGIN
public static final ReferrerPolicyHeaderWriter.ReferrerPolicy STRICT_ORIGIN
public static final ReferrerPolicyHeaderWriter.ReferrerPolicy ORIGIN_WHEN_CROSS_ORIGIN
public static final ReferrerPolicyHeaderWriter.ReferrerPolicy STRICT_ORIGIN_WHEN_CROSS_ORIGIN
public static final ReferrerPolicyHeaderWriter.ReferrerPolicy UNSAFE_URL
public static ReferrerPolicyHeaderWriter.ReferrerPolicy[] values()
for (ReferrerPolicyHeaderWriter.ReferrerPolicy c : ReferrerPolicyHeaderWriter.ReferrerPolicy.values()) System.out.println(c);
public static ReferrerPolicyHeaderWriter.ReferrerPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getPolicy()
public static ReferrerPolicyHeaderWriter.ReferrerPolicy get(String referrerPolicy)