Enum XXssProtectionServerHttpHeadersWriter.HeaderValue
- java.lang.Object
-
- java.lang.Enum<XXssProtectionServerHttpHeadersWriter.HeaderValue>
-
- org.springframework.security.web.server.header.XXssProtectionServerHttpHeadersWriter.HeaderValue
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XXssProtectionServerHttpHeadersWriter.HeaderValue>
- Enclosing class:
- XXssProtectionServerHttpHeadersWriter
public static enum XXssProtectionServerHttpHeadersWriter.HeaderValue extends java.lang.Enum<XXssProtectionServerHttpHeadersWriter.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 java.lang.String
toString()
static XXssProtectionServerHttpHeadersWriter.HeaderValue
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XXssProtectionServerHttpHeadersWriter.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 XXssProtectionServerHttpHeadersWriter.HeaderValue DISABLED
-
ENABLED
public static final XXssProtectionServerHttpHeadersWriter.HeaderValue ENABLED
-
ENABLED_MODE_BLOCK
public static final XXssProtectionServerHttpHeadersWriter.HeaderValue ENABLED_MODE_BLOCK
-
-
Method Detail
-
values
public static XXssProtectionServerHttpHeadersWriter.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 (XXssProtectionServerHttpHeadersWriter.HeaderValue c : XXssProtectionServerHttpHeadersWriter.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 XXssProtectionServerHttpHeadersWriter.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<XXssProtectionServerHttpHeadersWriter.HeaderValue>
-
-