public enum FramePolicy extends Enum<FramePolicy>
X-Frame-Options header.| Enum Constant and Description |
|---|
ALLOW
Allow any origin to frame the resource
|
DENY
Do not permit any origin to frame the resource
|
INHERIT
Use the default value from the enclosing element
|
SAME_ORIGIN
Only permit resources on the same origin as this resource to frame it.
|
| Modifier and Type | Field and Description |
|---|---|
static FramePolicy |
DEFAULT
Default
FramePolicy |
| Modifier and Type | Method and Description |
|---|---|
static FramePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FramePolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final FramePolicy ALLOW
public static final FramePolicy DENY
public static final FramePolicy SAME_ORIGIN
public static final FramePolicy INHERIT
public static final FramePolicy DEFAULT
FramePolicypublic static FramePolicy[] values()
for (FramePolicy c : FramePolicy.values())
System.out.println(c);
public static FramePolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null