camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <johndam...@apache.org>
Subject Default binding mode for REST
Date Mon, 25 Apr 2016 17:22:46 GMT
I'm not sure if this is a bug or typo or what :-)

I have a simple rest DSL configuration:

        restConfiguration()
                .component("jetty")
                .port(9097)
                .bindingMode(RestBindingMode.auto);

If I take out the binding mode, everything is interpretted as an
InputStream.  According to the documentation, this is the expected
behavior: http://camel.apache.org/rest-dsl.html

But then I look at the code, and it appears that the expected default is
auto.  Auto would make a lot more sense.

    @XmlAttribute @Metadata(defaultValue = "auto")
    private RestBindingMode bindingMode;

So which should be correct in this case?

John

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message