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

@Header should have a value default so you do not have to set the name attribute

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 2.0-M1
    • camel-core
    • None

    Description

      Doing this bean binding:

              public List<String> route(@XPath("/customer/id") String customerId, @Header("Location") String location, Document body) {
      

      The @Header does not have a default value, so you have to do this to get it to work:

              public List<String> route(@XPath("/customer/id") String customerId, @Header(name = "Location") String location, Document body) {
      

      So we should support you do not have to set the name attribute.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: