public enum EXFrameOptionType extends Enum<EXFrameOptionType> implements com.helger.commons.id.IHasID<String>
| Enum Constant and Description |
|---|
ALLOW_FROM
The page can only be displayed in a frame on the specified origin.
|
DENY
The page cannot be displayed in a frame, regardless of the site attempting to
do so.
|
SAMEORIGIN
The page can only be displayed in a frame on the same origin as the page
itself.
|
| Modifier and Type | Field and Description |
|---|---|
static EXFrameOptionType |
DEFAULT |
| Modifier and Type | Method and Description |
|---|---|
static EXFrameOptionType |
getFromIDOrNull(String sID) |
String |
getID() |
boolean |
isURLRequired() |
static EXFrameOptionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EXFrameOptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EXFrameOptionType DENY
public static final EXFrameOptionType SAMEORIGIN
public static final EXFrameOptionType ALLOW_FROM
public static final EXFrameOptionType DEFAULT
public static EXFrameOptionType[] values()
for (EXFrameOptionType c : EXFrameOptionType.values()) System.out.println(c);
public static EXFrameOptionType 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@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>public boolean isURLRequired()
@Nullable public static EXFrameOptionType getFromIDOrNull(@Nullable String sID)
Copyright © 2016–2019 Philip Helger. All rights reserved.