public static enum XFrameOptionsHttpHeadersWriter.Mode extends java.lang.Enum<XFrameOptionsHttpHeadersWriter.Mode>
Enum Constant and Description |
---|
DENY
A browser receiving content with this header field MUST NOT display
this content in any frame.
|
SAMEORIGIN
A browser receiving content with this header field MUST NOT display
this content in any frame from a page of different origin than the
content itself.
|
Modifier and Type | Method and Description |
---|---|
static XFrameOptionsHttpHeadersWriter.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XFrameOptionsHttpHeadersWriter.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XFrameOptionsHttpHeadersWriter.Mode DENY
public static final XFrameOptionsHttpHeadersWriter.Mode SAMEORIGIN
public static XFrameOptionsHttpHeadersWriter.Mode[] values()
for (XFrameOptionsHttpHeadersWriter.Mode c : XFrameOptionsHttpHeadersWriter.Mode.values()) System.out.println(c);
public static XFrameOptionsHttpHeadersWriter.Mode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null