Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12178

Add getMessage and setMessage methods to the Exchange interface

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.21.0
    • camel-core
    • None
    • Unknown

    Description

      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.

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hqstevenson Quinn Stevenson
            hqstevenson Quinn Stevenson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment