Enum XXssProtectionHeaderWriter.HeaderValue
- java.lang.Object
-
- java.lang.Enum<XXssProtectionHeaderWriter.HeaderValue>
-
- org.springframework.security.web.header.writers.XXssProtectionHeaderWriter.HeaderValue
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XXssProtectionHeaderWriter.HeaderValue>
- Enclosing class:
- XXssProtectionHeaderWriter
public static enum XXssProtectionHeaderWriter.HeaderValue extends java.lang.Enum<XXssProtectionHeaderWriter.HeaderValue>
The value of the x-xss-protection header. One of: "0", "1", "1; mode=block"- Since:
- 5.8
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISABLED
ENABLED
ENABLED_MODE_BLOCK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XXssProtectionHeaderWriter.HeaderValue
from(java.lang.String headerValue)
java.lang.String
toString()
static XXssProtectionHeaderWriter.HeaderValue
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XXssProtectionHeaderWriter.HeaderValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLED
public static final XXssProtectionHeaderWriter.HeaderValue DISABLED
-
ENABLED
public static final XXssProtectionHeaderWriter.HeaderValue ENABLED
-
ENABLED_MODE_BLOCK
public static final XXssProtectionHeaderWriter.HeaderValue ENABLED_MODE_BLOCK
-
-
Method Detail
-
values
public static XXssProtectionHeaderWriter.HeaderValue[] 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 (XXssProtectionHeaderWriter.HeaderValue c : XXssProtectionHeaderWriter.HeaderValue.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XXssProtectionHeaderWriter.HeaderValue valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
from
public static XXssProtectionHeaderWriter.HeaderValue from(java.lang.String headerValue)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<XXssProtectionHeaderWriter.HeaderValue>
-
-