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:25:00 UTC

[camel] branch master updated (8580e0a -> d86fe10)

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 8580e0a  CAMEL-14868 - Camel-AWS2-*: Where possible, give the possiblity to the end user to pass an AWS Request pojo as body, aws2-mq added spring test
     new 0cbddff  Camel-AWS2-MSK: Added example for pojoRequest
     new 808d443  AWS2-MSK: Dependencies element title in docs
     new d86fe10  Regen website docs

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


[camel] 02/03: AWS2-MSK: Dependencies element title in 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 808d4437440a9a2d9d6aafb5c9c35ba0a748fe63
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Apr 24 11:22:38 2020 +0200

    AWS2-MSK: Dependencies element title in docs
---
 components/camel-aws2-msk/src/main/docs/aws2-msk-component.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-aws2-msk/src/main/docs/aws2-msk-component.adoc b/components/camel-aws2-msk/src/main/docs/aws2-msk-component.adoc
index bee8ade..421d307 100644
--- a/components/camel-aws2-msk/src/main/docs/aws2-msk-component.adoc
+++ b/components/camel-aws2-msk/src/main/docs/aws2-msk-component.adoc
@@ -175,7 +175,7 @@ from("direct:createUser")
 
 In this way you'll pass the request directly without the need of passing headers and options specifically related to this operation.
 
-Dependencies
+== Dependencies
 
 Maven users will need to add the following dependency to their pom.xml.
 


[camel] 01/03: Camel-AWS2-MSK: 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 0cbddff2dd6a5f787eae4528bcedc53ef67a6d19
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Apr 24 11:20:31 2020 +0200

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

diff --git a/components/camel-aws2-msk/src/main/docs/aws2-msk-component.adoc b/components/camel-aws2-msk/src/main/docs/aws2-msk-component.adoc
index 82bcb5f..bee8ade 100644
--- a/components/camel-aws2-msk/src/main/docs/aws2-msk-component.adoc
+++ b/components/camel-aws2-msk/src/main/docs/aws2-msk-component.adoc
@@ -162,6 +162,19 @@ The component is capable of detecting the presence of an KafkaClient bean into t
 If it's the only instance of that type it will be used as client and you won't have to define it as uri parameter.
 This may be really useful for smarter configuration of the endpoint.
 
+== 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 MSK there are multiple operations you can submit, as an example for List clusters request, you can do something like:
+
+------------------------------------------------------------------------------------------------------
+from("direct:createUser")
+     .setBody(ListClustersRequest.builder().maxResults(10).build())
+     .to("aws2-msk://test?mskClient=#amazonMskClient&operation=listClusters&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] 03/03: Regen website 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 d86fe10e9d8664b517656ba92ed2f0ce4de04ecf
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Apr 24 11:24:34 2020 +0200

    Regen website docs
---
 .../components/modules/ROOT/pages/aws2-msk-component.adoc | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/docs/components/modules/ROOT/pages/aws2-msk-component.adoc b/docs/components/modules/ROOT/pages/aws2-msk-component.adoc
index d75aaa0..71befed 100644
--- a/docs/components/modules/ROOT/pages/aws2-msk-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-msk-component.adoc
@@ -164,7 +164,20 @@ The component is capable of detecting the presence of an KafkaClient bean into t
 If it's the only instance of that type it will be used as client and you won't have to define it as uri parameter.
 This may be really useful for smarter configuration of the endpoint.
 
-Dependencies
+== 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 MSK there are multiple operations you can submit, as an example for List clusters request, you can do something like:
+
+------------------------------------------------------------------------------------------------------
+from("direct:createUser")
+     .setBody(ListClustersRequest.builder().maxResults(10).build())
+     .to("aws2-msk://test?mskClient=#amazonMskClient&operation=listClusters&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.