org.springframework.security.web.header.writers.frameoptions
Enum XFrameOptionsHeaderWriter.XFrameOptionsMode

java.lang.Object
  extended by java.lang.Enum<XFrameOptionsHeaderWriter.XFrameOptionsMode>
      extended by org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter.XFrameOptionsMode
All Implemented Interfaces:
Serializable, Comparable<XFrameOptionsHeaderWriter.XFrameOptionsMode>
Enclosing class:
XFrameOptionsHeaderWriter

public static enum XFrameOptionsHeaderWriter.XFrameOptionsMode
extends Enum<XFrameOptionsHeaderWriter.XFrameOptionsMode>

The possible values for the X-Frame-Options header.

Since:
3.2

Enum Constant Summary
ALLOW_FROM
           
DENY
           
SAMEORIGIN
           
 
Method Summary
static XFrameOptionsHeaderWriter.XFrameOptionsMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XFrameOptionsHeaderWriter.XFrameOptionsMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DENY

public static final XFrameOptionsHeaderWriter.XFrameOptionsMode DENY

SAMEORIGIN

public static final XFrameOptionsHeaderWriter.XFrameOptionsMode SAMEORIGIN

ALLOW_FROM

public static final XFrameOptionsHeaderWriter.XFrameOptionsMode ALLOW_FROM
Method Detail

values

public static XFrameOptionsHeaderWriter.XFrameOptionsMode[] 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 (XFrameOptionsHeaderWriter.XFrameOptionsMode c : XFrameOptionsHeaderWriter.XFrameOptionsMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static XFrameOptionsHeaderWriter.XFrameOptionsMode 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 name
NullPointerException - if the argument is null