public enum MessageHeaderType extends Enum<MessageHeaderType>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
STRING |
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_PREFIX
Identifying prefix and suffix for typed header values
|
static String |
TYPE_SUFFIX |
Modifier and Type | Method and Description |
---|---|
static String |
createTypedValue(String type,
String value)
Creates a typed header value with type and value.
|
static MessageHeaderType |
fromTypedValue(String headerValue)
Try to find MessageHeaderType from a typed header value.
|
Class<?> |
getHeaderClass()
Gets the clazz.
|
String |
getName()
Gets the name.
|
static boolean |
isTyped(String headerValue)
Checks if this header value is typed with matching type prefix.
|
static String |
removeTypeDefinition(String headerValue)
Removes the type definition form a typed header value.
|
static MessageHeaderType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageHeaderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageHeaderType INTEGER
public static final MessageHeaderType LONG
public static final MessageHeaderType FLOAT
public static final MessageHeaderType DOUBLE
public static final MessageHeaderType BYTE
public static final MessageHeaderType SHORT
public static final MessageHeaderType BOOLEAN
public static final MessageHeaderType STRING
public static final String TYPE_PREFIX
public static final String TYPE_SUFFIX
public static MessageHeaderType[] values()
for (MessageHeaderType c : MessageHeaderType.values()) System.out.println(c);
public static MessageHeaderType 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 nullpublic static boolean isTyped(String headerValue)
headerValue
- public static String createTypedValue(String type, String value)
type
- value
- public static MessageHeaderType fromTypedValue(String headerValue)
headerValue
- public static String removeTypeDefinition(String headerValue)
headerValue
- public String getName()
public Class<?> getHeaderClass()
Copyright © 2008–2017 ConSol Software GmbH. All rights reserved.