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

camel-core - Languages should have a way to set result type / and input from header instead of body

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.20.0
    • camel-core
    • None
    • Unknown

    Description

      Some of the languages have

      @XmlAttribute(name = "resultType")
      private String resultTypeName;
      @XmlTransient
      private Class<?> resultType;
      @XmlAttribute
      @Metadata(label = "advanced")
      private String headerName;
      @Metadata(label = "advanced")
      private String propertyName;

      We need to have this for more languages (all but not)

      • header
      • exchange property

      So we could maybe have a class that extends ExpressionDefinition and then have the above options which other languages can extend to make it reuable and consistent.

      This then also requires to update

      • reifier
      • builder

      Attachments

        Issue Links

          Activity

            People

              essobedo Nicolas Filotto
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: