public static enum CefRequest.ReferrerPolicy extends java.lang.Enum<CefRequest.ReferrerPolicy>
枚举常量和说明 |
---|
REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN
Clear the referrer when the request's referrer is cross-origin with the request destination.
|
REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE
Clear the referrer header if the header value is HTTPS but the request destination is HTTP.
|
REFERRER_POLICY_DEFAULT
This is the same as REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE but here to match CEF native.
|
REFERRER_POLICY_LAST_VALUE
Always the last value in this enumeration.
|
REFERRER_POLICY_NEVER_CLEAR_REFERRER
Never change the referrer.
|
REFERRER_POLICY_NO_REFERRER
Always clear the referrer regardless of the request destination.
|
REFERRER_POLICY_ORIGIN
Strip the referrer down to the origin regardless of the redirect location.
|
REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE
Strip the referrer down to the origin, but clear it entirely if the referrer value is HTTPS and the destination is HTTP.
|
REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN
Strip the referrer down to an origin when the origin of the referrer is different from the destination's origin.
|
REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN
A slight variant on CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE: If the request destination is HTTP, an HTTPS referrer will be cleared.
|
限定符和类型 | 方法和说明 |
---|---|
static CefRequest.ReferrerPolicy |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static CefRequest.ReferrerPolicy[] |
values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
|
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_DEFAULT
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_LAST_VALUE
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_NEVER_CLEAR_REFERRER
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_NO_REFERRER
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_ORIGIN
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN
public static final CefRequest.ReferrerPolicy REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN
public static CefRequest.ReferrerPolicy valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量
java.lang.NullPointerException
- 如果参数为空值
public static CefRequest.ReferrerPolicy[] values()
for (CefRequest.ReferrerPolicy c : CefRequest.ReferrerPolicy.values()) System.out.println(c);