Enum XFrameOptionsMode
- java.lang.Object
-
- java.lang.Enum<XFrameOptionsMode>
-
- com.netgrif.application.engine.configuration.properties.enumeration.XFrameOptionsMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XFrameOptionsMode>
public enum XFrameOptionsMode extends java.lang.Enum<XFrameOptionsMode>
DENY - The page cannot be displayed in a frame, regardless of the site attempting to do so. SAMEORIGIN - The page can only be displayed if all ancestor frames are same origin to the page itself. More Info
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DENY
The page cannot be displayed in a frame, regardless of the site attempting to do so.DISABLE
Disable X-Frame-OptionsSAMEORIGIN
The page can only be displayed if all ancestor frames are same origin to the page itself.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XFrameOptionsMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XFrameOptionsMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISABLE
public static final XFrameOptionsMode DISABLE
Disable X-Frame-Options
-
DENY
public static final XFrameOptionsMode DENY
The page cannot be displayed in a frame, regardless of the site attempting to do so.
-
SAMEORIGIN
public static final XFrameOptionsMode SAMEORIGIN
The page can only be displayed if all ancestor frames are same origin to the page itself.
-
-
Method Detail
-
values
public static 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 (XFrameOptionsMode c : 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 XFrameOptionsMode 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
-
-