...
Binding Mode | Description |
---|---|
off | Binding is turned off. This is the default option. |
auto | Binding is enabled and Camel is relaxed and support json, xml or both if the needed data formats are included in the classpath. Notice that if for example camel-jaxb is not on the classpath, then XML binding is not enabled. |
json | Binding to/from json is enabled, and requires a json capabile data format on the classpath. By default Camel will use json-jackson as the data format. |
xml | Binding to/from xml is enabled, and requires camel-jaxb on the classpath. |
json_xml | Biding to/from json and xml is enabled and requires both data formats to be on the classpath. |
Tip |
---|
From Camel 2.14.1 onwards when using camel-jaxb for xml bindings, then you can use the option |
To use binding you must include the necessary data formats on the classpath, such as camel-jaxb
and/or camel-jackson
. And then enable the binding mode. You can configure the binding mode globally on the rest configuration, and then override per rest service as well.
...