You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2011/03/04 12:49:36 UTC

[jira] Created: (CAMEL-3752) ExchangeBuilder

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

        

[jira] [Closed] (CAMEL-3752) ExchangeBuilder

Posted by "Richard Kettelerij (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-3752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Kettelerij closed CAMEL-3752.
-------------------------------------

    Resolution: Duplicate

> 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