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

camel-core - Propose a DSL for data formats

    XMLWordPrintableJSON

Details

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

    Description

      For Java DSL then we have a data format builder at org.apache.camel.builder.DataFormatClause

      This class is very verbose as for Java DSL we have overloaded methods to set the various options, but it can get too far like xmlSecurity with 15 methods.

      Instead, we should propose a builder DSL class that the RouteBuilder can provide.

      marshal(
          dataFormat()
              .secureXml()
                  .optionA(bla bla)
                  .optionB(bla bla)
                  .optionC(bla bla)
              .end()
      )

      Then we can still manually add a few methods for common use cases, so you can do marshal().secureXml(bla bla, true).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: