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