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

camel-core - Optional property placeholders

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.9.0
    • camel-core
    • None
    • Unknown

    Description

      We can add support for letting property placeholders be optional, if the key starts with ?

      eg so you can do

      to("kafka:cheese?{{?maxBlock}}")
      

      And maxBlock is a key=value

      But for endpoints we should allow the value to indicate its optional which makes the option optional.

      to("kafka:cheese?maxBlockMs={{?myBlock}}")
      

      So the producer will then only use maxBlockMs if there is a value, otherwise the uri becomes "kafka:cheese"

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: