public interface DataTypeAware
Message
to store a DataType
which
represents the data type of the Message. Sometimes message content is marshaled
into String
, InputStream
or etc, and the data type structure is
not available until it's unmarshaled into Java object. The DataType
stored
in a DataTypeAware message carries that missing data type information even if it's
marshaled, and whatever the Java class of the body is. This type information is used
to detect required Transformer
and Validator
.DataType} {@link Transformer} {@link Validator}
Modifier and Type | Method and Description |
---|---|
DataType |
getDataType()
Get the data type of the message.
|
void |
setBody(Object body,
DataType type)
Set the message body with data type.
|
void |
setDataType(DataType type)
Set the data type of the message.
|
void setDataType(DataType type)
type
- data typeDataType getDataType()
Apache Camel