public static enum ReferrerPolicyHeaderWriter.ReferrerPolicy extends java.lang.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(java.lang.String referrerPolicy) |
java.lang.String |
getPolicy() |
static ReferrerPolicyHeaderWriter.ReferrerPolicy |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getPolicy()
public static ReferrerPolicyHeaderWriter.ReferrerPolicy get(java.lang.String referrerPolicy)