You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/03/04 08:59:00 UTC
[jira] [Created] (CAMEL-16302) camel-core - Optional property
placeholders
Claus Ibsen created CAMEL-16302:
-----------------------------------
Summary: camel-core - Optional property placeholders
Key: CAMEL-16302
URL: https://issues.apache.org/jira/browse/CAMEL-16302
Project: Camel
Issue Type: New Feature
Components: camel-core
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 3.9.0
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"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)