Package de.xima.fc.config.server.model
Enum EFrameIntegrationMode
- java.lang.Object
-
- java.lang.Enum<EFrameIntegrationMode>
-
- de.xima.fc.config.server.model.EFrameIntegrationMode
-
- All Implemented Interfaces:
Serializable,Comparable<EFrameIntegrationMode>
public enum EFrameIntegrationMode extends Enum<EFrameIntegrationMode>
Whether forms (frontend) may be embedded in an iframe on other websites. Each mode determines the CSPframe-ancestorsdirective that is sent with forms.- Since:
- 8.6.2
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EFrameIntegrationModeparse(String value, EFrameIntegrationMode defaultMode)static EFrameIntegrationModevalueOf(String name)Returns the enum constant of this type with the specified name.static EFrameIntegrationMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final EFrameIntegrationMode NONE
Forms may only be embedded on pages of their own origin (frame-ancestors 'self'). The own origin stays allowed, because formcycle embeds forms itself, e.g. in the inbox.
-
URLS
public static final EFrameIntegrationMode URLS
Forms may be embedded on pages of their own origin and of the configured URLs.
-
ANY
public static final EFrameIntegrationMode ANY
Forms may be embedded on any website. Noframe-ancestorsdirective is sent.
-
-
Method Detail
-
values
public static EFrameIntegrationMode[] 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 (EFrameIntegrationMode c : EFrameIntegrationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EFrameIntegrationMode 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 nameNullPointerException- if the argument is null
-
parse
public static EFrameIntegrationMode parse(String value, EFrameIntegrationMode defaultMode)
- Parameters:
value- The name of a mode, case-insensitive. May benull.defaultMode- The mode to return if the value is blank or not the name of a mode.- Returns:
- The mode with the given name, or the given default mode.
-
-