You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/10/08 06:51:59 UTC

[camel] branch master updated (814a390 -> cc93289)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from 814a390  "CAMEL-14736:Upgrade to Hadoop 3.x" (#4382)
     new 5cb9aeb  CAMEL-15484 - UPDATE Documentation for Camel 3.x
     new cc93289  CAMEL-15484: Update documentation for camel-3.x for attachments

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 components/camel-mail/src/main/docs/mail-component.adoc | 3 ++-
 docs/components/modules/ROOT/pages/mail-component.adoc  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)


[camel] 02/02: CAMEL-15484: Update documentation for camel-3.x for attachments

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit cc93289733747048d8a7b5f93d6ff87d710ee3cd
Author: Uday Kiran <ma...@gmail.com>
AuthorDate: Wed Oct 7 17:24:31 2020 -0500

    CAMEL-15484: Update documentation for camel-3.x for attachments
---
 components/camel-mail/src/main/docs/mail-component.adoc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/camel-mail/src/main/docs/mail-component.adoc b/components/camel-mail/src/main/docs/mail-component.adoc
index dec43cf..fe81274 100644
--- a/components/camel-mail/src/main/docs/mail-component.adoc
+++ b/components/camel-mail/src/main/docs/mail-component.adoc
@@ -544,7 +544,8 @@ mail from java code:
 ---------------------------------------------------------------------------------
 public void process(Exchange exchange) throws Exception {
     // the API is a bit clunky so we need to loop
-    Map<String, DataHandler> attachments = exchange.getIn().getAttachments();
+    AttachmentMessage attachmentMessage = exchange.getMessage(AttachmentMessage.class);
+    Map<String, DataHandler> attachments = attachmentMessage.getAttachments();
     if (attachments.size() > 0) {
         for (String name : attachments.keySet()) {
             DataHandler dh = attachments.get(name);


[camel] 01/02: CAMEL-15484 - UPDATE Documentation for Camel 3.x

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 5cb9aeb57eff3c722e417a280fa4b6f252098863
Author: Uday Kiran Marupati <ma...@gmail.com>
AuthorDate: Tue Oct 6 22:41:17 2020 -0500

    CAMEL-15484 - UPDATE Documentation for Camel 3.x
    
    https://issues.apache.org/jira/browse/CAMEL-15484?filter=12348073
    
    - update documentation for camel 3.x
---
 docs/components/modules/ROOT/pages/mail-component.adoc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/components/modules/ROOT/pages/mail-component.adoc b/docs/components/modules/ROOT/pages/mail-component.adoc
index 003b765..919fb1a 100644
--- a/docs/components/modules/ROOT/pages/mail-component.adoc
+++ b/docs/components/modules/ROOT/pages/mail-component.adoc
@@ -546,7 +546,8 @@ mail from java code:
 ---------------------------------------------------------------------------------
 public void process(Exchange exchange) throws Exception {
     // the API is a bit clunky so we need to loop
-    Map<String, DataHandler> attachments = exchange.getIn().getAttachments();
+    AttachmentMessage attachmentMessage = exchange.getMessage(AttachmentMessage.class);
+    Map<String, DataHandler> attachments = attachmentMessage.getAttachments();
     if (attachments.size() > 0) {
         for (String name : attachments.keySet()) {
             DataHandler dh = attachments.get(name);