Name
Convert Body — Converts the message body to a form usable by the next endpoint
Usage
The convert body pattern converts the body of the message into the specified Java type. It can also change the character encoding of the data.
The convert body pattern can appear anywhere in the body of the route.
Properties
Table 5.1 describes the properties you can specify using the properties editor.
Table 5.1. Convert Body Properties
Name | Description |
---|---|
Type | Specifies the Java class to which the message body is converted. The type is specified using fully qualified Java type name. |
Charset | Specifies the character encoding to use. |
Id | Specifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Apache Camel configuration file. |
Description | Specifies a text description of the bean. The description is included in the generated XML file. |