...
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 |
json | Binding to/from json is enabled, and requires a json capabile data format on the classpath. By default Camel will use |
xml | Binding to/from xml is enabled, and requires |
json_xml | Biding to/from json and xml is enabled and requires both data formats to be on the classpath. See the INFO box below for more details. |
Tip |
---|
From Camel 2.14.1 onwards when using camel-jaxb for xml bindings, then you can use the option |
...
Info |
---|
From Camel 2.16.3 onwards the binding from POJO to JSon/JAXB will only happen if the |
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.
To enable binding you configure this in Java DSL as shown below
...