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/04/24 09:42:15 UTC

[camel] branch master updated (d86fe10 -> 661fa9e)

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 d86fe10  Regen website docs
     new 52a12d6  Camel-AWS2-S3: Added example for pojoRequest
     new 661fa9e  Regen docs

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:
 .../camel-aws2-s3/src/main/docs/aws2-s3-component.adoc      | 13 +++++++++++++
 docs/components/modules/ROOT/pages/aws2-s3-component.adoc   | 13 +++++++++++++
 2 files changed, 26 insertions(+)


[camel] 02/02: Regen docs

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 661fa9ee4c81d9a658e7a78df1e5458042093e0d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Apr 24 11:41:45 2020 +0200

    Regen docs
---
 docs/components/modules/ROOT/pages/aws2-s3-component.adoc | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/docs/components/modules/ROOT/pages/aws2-s3-component.adoc b/docs/components/modules/ROOT/pages/aws2-s3-component.adoc
index c4222fd..a320865 100644
--- a/docs/components/modules/ROOT/pages/aws2-s3-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-s3-component.adoc
@@ -547,6 +547,19 @@ from("direct:putObject")
     .to(awsEndpoint);
 --------------------------------------------------------------------------------
 
+== Using a POJO as body
+
+Sometimes build an AWS Request can be complex, because of multiple options. We introduce the possibility to use a POJO as body.
+In AWS S3 there are multiple operations you can submit, as an example for List brokers request, you can do something like:
+
+------------------------------------------------------------------------------------------------------
+from("direct:aws2-s3")
+     .setBody(ListObjectsRequest.builder().bucket(bucketName).build())
+     .to("aws2-s3://test?amazonS3Client=#amazonS3Client&operation=listObjects&pojoRequest=true")
+------------------------------------------------------------------------------------------------------
+
+In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation.
+
 == Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.


[camel] 01/02: Camel-AWS2-S3: Added example for pojoRequest

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 52a12d618cc043e08c8d6263bb151449ee74b244
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Apr 24 11:37:14 2020 +0200

    Camel-AWS2-S3: Added example for pojoRequest
---
 .../camel-aws2-s3/src/main/docs/aws2-s3-component.adoc      | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc b/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc
index 46f9772..06ee833 100644
--- a/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc
+++ b/components/camel-aws2-s3/src/main/docs/aws2-s3-component.adoc
@@ -545,6 +545,19 @@ from("direct:putObject")
     .to(awsEndpoint);
 --------------------------------------------------------------------------------
 
+== Using a POJO as body
+
+Sometimes build an AWS Request can be complex, because of multiple options. We introduce the possibility to use a POJO as body.
+In AWS S3 there are multiple operations you can submit, as an example for List brokers request, you can do something like:
+
+------------------------------------------------------------------------------------------------------
+from("direct:aws2-s3")
+     .setBody(ListObjectsRequest.builder().bucket(bucketName).build())
+     .to("aws2-s3://test?amazonS3Client=#amazonS3Client&operation=listObjects&pojoRequest=true")
+------------------------------------------------------------------------------------------------------
+
+In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation.
+
 == Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.