public static interface MetaDataExtension.MetaData
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_TYPE |
static String |
CONTEXT |
static String |
JAVA_TYPE |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Returns an attribute associated with this meta data by name.
|
<T> T |
getAttribute(String name,
Class<T> type)
Returns an attribute associated with this meta data by name and specifying the type required.
|
Map<String,Object> |
getAttributes() |
Object |
getPayload()
Returns the payload of the meta data as a POJO.
|
<T> T |
getPayload(Class<T> type)
Returns the payload of the meta data as specified type.
|
static final String CONTENT_TYPE
static final String JAVA_TYPE
static final String CONTEXT
Object getAttribute(String name)
name
- the attribute name<T> T getAttribute(String name, Class<T> type)
name
- the attribute nametype
- the type of the attributeTypeConversionException
- is thrown if error during type conversionObject getPayload()
<T> T getPayload(Class<T> type)
type
- the type that the payload should be converted yo.TypeConversionException
- is thrown if error during type conversionApache Camel