John D. Ament created CAMEL-9911:
------------------------------------
Summary: RestBindingMode auto not honored
Key: CAMEL-9911
URL: https://issues.apache.org/jira/browse/CAMEL-9911
Project: Camel
Issue Type: Bug
Affects Versions: 2.17.0
Reporter: John D. Ament
Assignee: John D. Ament
The usage of rest binding mode is confusing/doesn't work consistently.
If you look at the field definition:
{code}
@XmlAttribute @Metadata(defaultValue = "auto")
private RestBindingMode bindingMode;
{code}
You would expect that the default value is "auto" but in fact there is no
default when running.
You need to explicitly set it in configuration, like this:
{code}
restConfiguration()
.component("jetty")
.port(9097)
.bindingMode(RestBindingMode.auto)
;
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)