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

camel-core - Optional property placeholders

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: