Package org.citrusframework.message
Enum Class MessageHeaderType
- All Implemented Interfaces:
Serializable,Comparable<MessageHeaderType>,Constable
Enumeration for supported message header types. Header values are able to define a type. In this case they
are typed header values. Message sender/receiver will try to set typed header values according to this.
- Author:
- Christoph Deppisch
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateTypedValue(String type, String value) Creates a typed header value with type and value.static MessageHeaderTypefromTypedValue(String headerValue) Try to find MessageHeaderType from a typed header value.Class<?>Gets the clazz.getName()Gets the name.static booleanChecks if this header value is typed with matching type prefix.static StringremoveTypeDefinition(String headerValue) Removes the type definition form a typed header value.static MessageHeaderTypeReturns the enum constant of this class with the specified name.static MessageHeaderType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTEGER
-
LONG
-
FLOAT
-
DOUBLE
-
BYTE
-
SHORT
-
BOOLEAN
-
STRING
-
-
Field Details
-
TYPE_PREFIX
Identifying prefix and suffix for typed header values- See Also:
-
TYPE_SUFFIX
- See Also:
-
-
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
-
isTyped
Checks if this header value is typed with matching type prefix.- Parameters:
headerValue-- Returns:
-
createTypedValue
Creates a typed header value with type and value.- Parameters:
type-value-- Returns:
-
fromTypedValue
Try to find MessageHeaderType from a typed header value. The type definition is located at the beginning of the header value with respective type definition prefix and suffix.- Parameters:
headerValue-- Returns:
-
removeTypeDefinition
Removes the type definition form a typed header value.- Parameters:
headerValue-- Returns:
-
getName
Gets the name.- Returns:
- the name the name to get.
-
getHeaderClass
Gets the clazz.- Returns:
- the clazz the clazz to get.
-