camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-9911) RestBindingMode auto not honored
Date Wed, 27 Apr 2016 06:32:12 GMT

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

Claus Ibsen resolved CAMEL-9911.
--------------------------------
    Resolution: Fixed

> 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)

Mime
View raw message