You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/08/26 03:35:47 UTC

[camel] branch master updated (eed2831 -> cf217a0)

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

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


    from eed2831  Fixed wrong syntax
     new b7ede17  Add missing docs
     new f78c229  Regen
     new cf217a0  Regen

The 3 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:
 .../src/main/docs/attachments.adoc                 | 22 ++++++++++++++++++++++
 components/readme.adoc                             |  2 +-
 docs/components/modules/ROOT/nav.adoc              |  1 +
 .../components/modules/ROOT/pages/attachments.adoc | 22 ++++++++++++++++++++++
 .../ROOT/pages/microprofile-metrics-component.adoc |  2 +-
 5 files changed, 47 insertions(+), 2 deletions(-)
 create mode 100644 components/camel-attachments/src/main/docs/attachments.adoc
 create mode 100644 docs/components/modules/ROOT/pages/attachments.adoc


[camel] 02/03: Regen

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

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

commit f78c22993fe7b1a316cf789a9c213ece2a027513
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 26 05:33:25 2019 +0200

    Regen
---
 components/readme.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/readme.adoc b/components/readme.adoc
index 86e9c4a..3638b06 100644
--- a/components/readme.adoc
+++ b/components/readme.adoc
@@ -566,7 +566,7 @@ Number of Components: 297 in 235 JAR artifacts (0 deprecated)
 `micrometer:metricsType:metricsName` | 2.22 | To collect various metrics directly from Camel routes using the Micrometer library.
 
 | link:camel-microprofile-metrics/src/main/docs/microprofile-metrics-component.adoc[MicroProfile Metrics] (camel-microprofile-metrics) +
-`microprofile-metrics:metricType:metricsName` | 3.0 | Camel metrics exposed with Eclipse MicroProfile Metrics
+`microprofile-metrics:metricType:metricName` | 3.0 | Camel metrics exposed with Eclipse MicroProfile Metrics
 
 | link:camel-mina/src/main/docs/mina-component.adoc[Mina] (camel-mina) +
 `mina:protocol:host:port` | 2.10 | Socket level networking using TCP or UDP with the Apache Mina 2.x library.


[camel] 03/03: Regen

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

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

commit cf217a01202862ccfcb425e218324ff0dc3e3661
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 26 05:35:31 2019 +0200

    Regen
---
 docs/components/modules/ROOT/nav.adoc              |  1 +
 .../components/modules/ROOT/pages/attachments.adoc | 22 ++++++++++++++++++++++
 .../ROOT/pages/microprofile-metrics-component.adoc |  2 +-
 3 files changed, 24 insertions(+), 1 deletion(-)

diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index cb8ba7f..9d14e4a 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -19,6 +19,7 @@
 * xref:atomix-queue-component.adoc[Atomix Queue Component]
 * xref:atomix-set-component.adoc[Atomix Set Component]
 * xref:atomix-value-component.adoc[Atomix Value Component]
+* xref:attachments.adoc[Attachments Component]
 * xref:avro-component.adoc[Avro Component]
 * xref:avro-dataformat.adoc[Avro DataFormat]
 * xref:aws-cw-component.adoc[AWS CloudWatch Component]
diff --git a/docs/components/modules/ROOT/pages/attachments.adoc b/docs/components/modules/ROOT/pages/attachments.adoc
new file mode 100644
index 0000000..85dcbce
--- /dev/null
+++ b/docs/components/modules/ROOT/pages/attachments.adoc
@@ -0,0 +1,22 @@
+= Attachments Component
+
+The attachments component provides the `javax.attachments` API support for Apache Camel.
+A few Camel component uses attachments such as mail and web-service components.
+The attachments component is include automatic when using these components.
+
+The attachments support is on Camel `Message` level, for example to get
+the `javax.activation.DataHandler` instance of the attachment, you can do as shown below:
+
+[source,java]
+----
+AttachmentMessage attMsg = exchange.getIn(AttachmentMessage.class);
+Attachment attachment = attMsg.getAttachmentObject("myAttachment");
+DataHandler dh = attachment.getDataHandler();
+----
+
+And if you want to add an attachment, to a Camel `Message` you can do as shown:
+[source,java]
+----
+AttachmentMessage attMsg = exchange.getIn(AttachmentMessage.class);
+attMsg.addAttachment("message1.xml", new DataHandler(new FileDataSource(new File("myMessage1.xml"))));
+----
diff --git a/docs/components/modules/ROOT/pages/microprofile-metrics-component.adoc b/docs/components/modules/ROOT/pages/microprofile-metrics-component.adoc
index 93eb1aa..3f4a879 100644
--- a/docs/components/modules/ROOT/pages/microprofile-metrics-component.adoc
+++ b/docs/components/modules/ROOT/pages/microprofile-metrics-component.adoc
@@ -45,7 +45,7 @@ The MicroProfile Metrics component supports 2 options, which are listed below.
 The MicroProfile Metrics endpoint is configured using URI syntax:
 
 ----
-microprofile-metrics:metricType:metricsName
+microprofile-metrics:metricType:metricName
 ----
 
 with the following path and query parameters:


[camel] 01/03: Add missing docs

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

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

commit b7ede17b1893bad0bc7aa1c00829357f061d7dd9
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 26 05:33:21 2019 +0200

    Add missing docs
---
 .../src/main/docs/attachments.adoc                 | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/components/camel-attachments/src/main/docs/attachments.adoc b/components/camel-attachments/src/main/docs/attachments.adoc
new file mode 100644
index 0000000..85dcbce
--- /dev/null
+++ b/components/camel-attachments/src/main/docs/attachments.adoc
@@ -0,0 +1,22 @@
+= Attachments Component
+
+The attachments component provides the `javax.attachments` API support for Apache Camel.
+A few Camel component uses attachments such as mail and web-service components.
+The attachments component is include automatic when using these components.
+
+The attachments support is on Camel `Message` level, for example to get
+the `javax.activation.DataHandler` instance of the attachment, you can do as shown below:
+
+[source,java]
+----
+AttachmentMessage attMsg = exchange.getIn(AttachmentMessage.class);
+Attachment attachment = attMsg.getAttachmentObject("myAttachment");
+DataHandler dh = attachment.getDataHandler();
+----
+
+And if you want to add an attachment, to a Camel `Message` you can do as shown:
+[source,java]
+----
+AttachmentMessage attMsg = exchange.getIn(AttachmentMessage.class);
+attMsg.addAttachment("message1.xml", new DataHandler(new FileDataSource(new File("myMessage1.xml"))));
+----