You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2016/04/25 19:18:12 UTC
[jira] [Created] (CAMEL-9911) RestBindingMode auto not honored
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)