You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Quinn Stevenson (JIRA)" <ji...@apache.org> on 2018/02/01 15:27:00 UTC
[jira] [Assigned] (CAMEL-12178) Add getMessage and setMessage
methods to the Exchange interface
[ https://issues.apache.org/jira/browse/CAMEL-12178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Quinn Stevenson reassigned CAMEL-12178:
---------------------------------------
Assignee: Quinn Stevenson
> Add getMessage and setMessage methods to the Exchange interface
> ---------------------------------------------------------------
>
> Key: CAMEL-12178
> URL: https://issues.apache.org/jira/browse/CAMEL-12178
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Quinn Stevenson
> Assignee: Quinn Stevenson
> Priority: Trivial
>
> Most of the time, the correct Camel Message is retrieve from the exchange using
>
> Message message = hasOut() ? getOut() : getIn();
>
> With this enhancement, the common usage would be supported by these methods.
>
> To try this out, I had to change the Exchange interface, the DefaultExchange implementation (both in camel-core), and RichExchange (in camel-scala). Everything seemed to be fine with the change.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)