Package org.openmetadata.service.config
Enum ReferrerPolicyHeaderFactory.ReferrerPolicyOption
- java.lang.Object
-
- java.lang.Enum<ReferrerPolicyHeaderFactory.ReferrerPolicyOption>
-
- org.openmetadata.service.config.ReferrerPolicyHeaderFactory.ReferrerPolicyOption
-
- All Implemented Interfaces:
Serializable,Comparable<ReferrerPolicyHeaderFactory.ReferrerPolicyOption>
- Enclosing class:
- ReferrerPolicyHeaderFactory
public static enum ReferrerPolicyHeaderFactory.ReferrerPolicyOption extends Enum<ReferrerPolicyHeaderFactory.ReferrerPolicyOption>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_REFERRERNO_REFERRER_WHEN_DOWNGRADEORIGINORIGIN_WHEN_CROSS_ORIGINSAME_ORIGINSTRICT_ORIGINSTRICT_ORIGIN_WHEN_CROSS_ORIGINUNSAFE_URL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()static ReferrerPolicyHeaderFactory.ReferrerPolicyOptionvalueOf(String name)Returns the enum constant of this type with the specified name.static ReferrerPolicyHeaderFactory.ReferrerPolicyOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_REFERRER
public static final ReferrerPolicyHeaderFactory.ReferrerPolicyOption NO_REFERRER
-
NO_REFERRER_WHEN_DOWNGRADE
public static final ReferrerPolicyHeaderFactory.ReferrerPolicyOption NO_REFERRER_WHEN_DOWNGRADE
-
ORIGIN
public static final ReferrerPolicyHeaderFactory.ReferrerPolicyOption ORIGIN
-
ORIGIN_WHEN_CROSS_ORIGIN
public static final ReferrerPolicyHeaderFactory.ReferrerPolicyOption ORIGIN_WHEN_CROSS_ORIGIN
-
SAME_ORIGIN
public static final ReferrerPolicyHeaderFactory.ReferrerPolicyOption SAME_ORIGIN
-
STRICT_ORIGIN
public static final ReferrerPolicyHeaderFactory.ReferrerPolicyOption STRICT_ORIGIN
-
STRICT_ORIGIN_WHEN_CROSS_ORIGIN
public static final ReferrerPolicyHeaderFactory.ReferrerPolicyOption STRICT_ORIGIN_WHEN_CROSS_ORIGIN
-
UNSAFE_URL
public static final ReferrerPolicyHeaderFactory.ReferrerPolicyOption UNSAFE_URL
-
-
Method Detail
-
values
public static ReferrerPolicyHeaderFactory.ReferrerPolicyOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReferrerPolicyHeaderFactory.ReferrerPolicyOption c : ReferrerPolicyHeaderFactory.ReferrerPolicyOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReferrerPolicyHeaderFactory.ReferrerPolicyOption valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
-