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