Package de.xima.fc.mdl.enums
Enum EHttpContentType
- java.lang.Object
-
- java.lang.Enum<EHttpContentType>
-
- de.xima.fc.mdl.enums.EHttpContentType
-
- All Implemented Interfaces:
INamedUiElement
,Serializable
,Comparable<EHttpContentType>
public enum EHttpContentType extends Enum<EHttpContentType> implements INamedUiElement
Enumeration of the possible content types that can be selected for theEWorkflowNodeType#FC_POST_REQUEST
. When form placeholders are replaced, the text is escaped according to the selected content type.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMA_SEPARATED_VALUES
The text file contains CSV content (comma separated)JSON
The text file contains JSON data.PLAIN_TEXT
The text file contains plain text that does not need any escaping.SEMICOLON_SEPARATED_VALUES
The text file contains CSV content (semicolon separated)XML
The text file contains XML
-
Field Summary
-
Fields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCodeMirrorMode()
String
getDisplayName(Locale locale)
The display name of this element in the given locale.IPlaceholderEscaper
getEscaper()
String
getMimeType()
static EHttpContentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EHttpContentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLAIN_TEXT
public static final EHttpContentType PLAIN_TEXT
The text file contains plain text that does not need any escaping.
-
JSON
public static final EHttpContentType JSON
The text file contains JSON data.
-
XML
public static final EHttpContentType XML
The text file contains XML
-
COMMA_SEPARATED_VALUES
public static final EHttpContentType COMMA_SEPARATED_VALUES
The text file contains CSV content (comma separated)
-
SEMICOLON_SEPARATED_VALUES
public static final EHttpContentType SEMICOLON_SEPARATED_VALUES
The text file contains CSV content (semicolon separated)
-
-
Method Detail
-
values
public static EHttpContentType[] 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 (EHttpContentType c : EHttpContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EHttpContentType 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
-
getMimeType
public String getMimeType()
- Returns:
- the name of the content type
-
getDisplayName
public String getDisplayName(Locale locale)
Description copied from interface:INamedUiElement
The display name of this element in the given locale.- Specified by:
getDisplayName
in interfaceINamedUiElement
- Parameters:
locale
- The locale to get the display name for.- Returns:
- The display name of this element in the given locale.
-
getCodeMirrorMode
public String getCodeMirrorMode()
- Returns:
- The content type for the mode of CodeMirror
-
getEscaper
public IPlaceholderEscaper getEscaper()
- Returns:
- The placeholder escaper to be used for this content type.
-
-