camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Created: (CAMEL-3752) ExchangeBuilder
Date Fri, 04 Mar 2011 11:49:36 GMT
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

        

Mime
View raw message