Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9911

RestBindingMode auto not honored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.17.0
    • 2.17.1, 2.18.0
    • camel-core
    • None
    • Unknown

    Description

      The usage of rest binding mode is confusing/doesn't work consistently.

      If you look at the field definition:

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

      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:

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

      Attachments

        Activity

          People

            johndament John D. Ament
            johndament John D. Ament
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: