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 47 describes the properties you can specify using the properties editor.

Table 47. Convert Body Properties

NameDescription
TypeSpecifies the Java class to which the message body is converted. The type is specified using fully qualified Java type name.
Inherit Error HandlerSpecifies whether the node should use the error handler configured for the route. The default is Disabled.
CharsetSpecifies the character encoding to use.
IdSpecifies a unique identifier for the endpoint. The Id can be used to refer to the endpoint in the Camel XML file.
DescriptionSpecifies a text description for the node. This description is included in the generated XML file, but it is informational only. It is not used by Apache Camel.