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:52:00 UTC
[camel] 01/02: CAMEL-15484 - UPDATE Documentation for Camel 3.x
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);