You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2016/04/26 08:56:12 UTC

[jira] [Updated] (CAMEL-9911) RestBindingMode auto not honored

     [ https://issues.apache.org/jira/browse/CAMEL-9911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-9911:
-------------------------------
    Fix Version/s: 2.18.0
                   2.17.1

> RestBindingMode auto not honored
> --------------------------------
>
>                 Key: CAMEL-9911
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9911
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.17.0
>            Reporter: John D. Ament
>            Assignee: John D. Ament
>             Fix For: 2.17.1, 2.18.0
>
>
> 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)