Convert the message body to the given class type |
convertBodyTo(Class type [, String charset])
<convertBodyTo type="<String>" [charset="<String>"] >
Parameter |
Type |
Description |
|---|---|---|
type |
Class |
Class type to convert to. For spring dsl use the Fully qualified name |
charset |
String |
charset name for conversions from byte to String |
convert to Java String
convertBodyTo(String.class) |
<convertBodyTo type="java.lang.String"/> |