ExchangeBuilder
---------------
Key: CAMEL-3752
URL: https://issues.apache.org/jira/browse/CAMEL-3752
Project: Camel
Issue Type: New Feature
Components: camel-core
Affects Versions: 2.6.0
Reporter: Claus Ibsen
Fix For: 3.0.0
We should add an {{ExchangeBuilder}} so you can use the builder pattern to
create an Exchange and set message body, headers etc.
Something along the lines like this. Maybe there is a shorter and nicer API to
do it:
{code}
Exchange exchange = ExchangeBuilder(context).withBody("Hello
World).andHeader("foo", 123).build("activemq:queue:foo");
{code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira