Enum Class FramePolicy
- All Implemented Interfaces:
Serializable,Comparable<FramePolicy>,Constable
Defines how this resource wishes to restrict user-agents from framing the
resource in a <frame> or <iframe> via the
X-Frame-Options header.- Author:
- cdivilly
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow any origin to frame the resourceDo not permit any origin to frame the resourceUse the default value from the enclosing elementOnly permit resources on the same origin as this resource to frame it. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FramePolicyReturns the enum constant of this class with the specified name.static FramePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALLOW
Allow any origin to frame the resource -
DENY
Do not permit any origin to frame the resource -
SAME_ORIGIN
Only permit resources on the same origin as this resource to frame it. -
INHERIT
Use the default value from the enclosing element
-
-
Field Details
-
DEFAULT
DefaultFramePolicy
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-