public enum RequestReferrerPolicy extends Enum<RequestReferrerPolicy>
| 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 RequestReferrerPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequestReferrerPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestReferrerPolicy UNSAFE_URL
public static final RequestReferrerPolicy NO_REFERRER_WHEN_DOWNGRADE
public static final RequestReferrerPolicy NO_REFERRER
public static final RequestReferrerPolicy ORIGIN
public static final RequestReferrerPolicy ORIGIN_WHEN_CROSS_ORIGIN
public static final RequestReferrerPolicy SAME_ORIGIN
public static final RequestReferrerPolicy STRICT_ORIGIN
public static final RequestReferrerPolicy STRICT_ORIGIN_WHEN_CROSS_ORIGIN
public static RequestReferrerPolicy[] values()
for (RequestReferrerPolicy c : RequestReferrerPolicy.values()) System.out.println(c);
public static RequestReferrerPolicy 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 nullCopyright © 2020. All rights reserved.