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/01/16 10:00:07 UTC

[camel] branch master updated (f8c22da -> 92c152f)

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 f8c22da  Upgrade Caffeine to version 2.8.1
     new dc899a2  Camel-AWS2-Translate: Added information about the region in SDK v2
     new d080a11  Camel-Aws2-Translate: Updated docs
     new 92c152f  Regen 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:
 .../src/main/docs/aws2-translate-component.adoc           | 15 +++++----------
 .../component/aws2/translate/Translate2Configuration.java |  6 +++---
 .../endpoint/dsl/Translate2EndpointBuilderFactory.java    |  6 +++---
 .../modules/ROOT/pages/aws2-translate-component.adoc      | 15 +++++----------
 4 files changed, 16 insertions(+), 26 deletions(-)


[camel] 02/03: Camel-Aws2-Translate: Updated 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 d080a118c165f4f5f5f92c2e92a21455f57be88b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 16 10:53:58 2020 +0100

    Camel-Aws2-Translate: Updated docs
---
 .../src/main/docs/aws2-translate-component.adoc               | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc b/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc
index 4d43d3a..66f5deb 100644
--- a/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc
+++ b/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc
@@ -3,11 +3,6 @@
 
 *Since Camel 3.1*
 
-*Since Camel 3.1*
-
-
-*Since Camel 3.1*
-
 
 // HEADER START
 *Only producer is supported*
@@ -131,9 +126,9 @@ Camel-AWS Translate component provides the following operation on the producer s
 
 - translateText
 
-== Automatic detection of AmazonTranslate client in registry
+== Automatic detection of TranslateClient client in registry
 
-The component is capable of detecting the presence of an AmazonTranslate bean into the registry.
+The component is capable of detecting the presence of an TranslateClient bean into the registry.
 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.
 
@@ -144,7 +139,7 @@ from("direct:start")
   .setHeader(TranslateConstants.SOURCE_LANGUAGE, TranslateLanguageEnum.ITALIAN)
   .setHeader(TranslateConstants.TARGET_LANGUAGE, TranslateLanguageEnum.GERMAN)
   .setBody("Ciao")
-  .to("aws-translate://test?translateClient=#amazonTranslateClient&operation=translateText");
+  .to("aws2-translate://test?translateClient=#amazonTranslateClient&operation=translateText");
 ------------------------------------------------------------------------------------------------------
 
 As result you'll get an exchange containing the translated text.


[camel] 01/03: Camel-AWS2-Translate: Added information about the region in SDK v2

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 dc899a21f2f7181d093eb52cbf98eb51c832a4bb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 16 10:52:42 2020 +0100

    Camel-AWS2-Translate: Added information about the region in SDK v2
---
 .../src/main/docs/aws2-translate-component.adoc                     | 4 ++--
 .../camel/component/aws2/translate/Translate2Configuration.java     | 6 +++---
 .../builder/endpoint/dsl/Translate2EndpointBuilderFactory.java      | 6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc b/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc
index 5de4d3c..4d43d3a 100644
--- a/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc
+++ b/components/camel-aws2-translate/src/main/docs/aws2-translate-component.adoc
@@ -87,7 +87,7 @@ with the following path and query parameters:
 | *proxyHost* (producer) | To define a proxy host when instantiating the Translate client |  | String
 | *proxyPort* (producer) | To define a proxy port when instantiating the Translate client |  | Integer
 | *proxyProtocol* (producer) | To define a proxy protocol when instantiating the Translate client | HTTPS | Protocol
-| *region* (producer) | The region in which Translate client needs to work. When using this parameter, the configuration will expect the capitalized name of the region (for example AP_EAST_1) You'll need to use the name Regions.EU_WEST_1.name() |  | String
+| *region* (producer) | The region in which Translate client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example ap-east-1) You'll need to use the name Region.EU_WEST_1.id() |  | String
 | *secretKey* (producer) | Amazon AWS Secret Key |  | String
 | *sourceLanguage* (producer) | Source language to use |  | String
 | *targetLanguage* (producer) | Target language to use |  | String
@@ -164,4 +164,4 @@ Maven users will need to add the following dependency to their pom.xml.
 </dependency>
 ---------------------------------------
 
-where `$\{camel-version\}` must be replaced by the actual version of Camel.
\ No newline at end of file
+where `$\{camel-version\}` must be replaced by the actual version of Camel.
diff --git a/components/camel-aws2-translate/src/main/java/org/apache/camel/component/aws2/translate/Translate2Configuration.java b/components/camel-aws2-translate/src/main/java/org/apache/camel/component/aws2/translate/Translate2Configuration.java
index 3ac1def..d458b30 100644
--- a/components/camel-aws2-translate/src/main/java/org/apache/camel/component/aws2/translate/Translate2Configuration.java
+++ b/components/camel-aws2-translate/src/main/java/org/apache/camel/component/aws2/translate/Translate2Configuration.java
@@ -137,9 +137,9 @@ public class Translate2Configuration implements Cloneable {
 
     /**
      * The region in which Translate client needs to work. When using this
-     * parameter, the configuration will expect the capitalized name of the
-     * region (for example AP_EAST_1) You'll need to use the name
-     * Regions.EU_WEST_1.name()
+     * parameter, the configuration will expect the lowercase name of the
+     * region (for example ap-east-1) You'll need to use the name
+     * Region.EU_WEST_1.id()
      */
     public void setRegion(String region) {
         this.region = region;
diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/Translate2EndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/Translate2EndpointBuilderFactory.java
index 292eb4a..71daceb 100644
--- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/Translate2EndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/Translate2EndpointBuilderFactory.java
@@ -207,9 +207,9 @@ public interface Translate2EndpointBuilderFactory {
         }
         /**
          * The region in which Translate client needs to work. When using this
-         * parameter, the configuration will expect the capitalized name of the
-         * region (for example AP_EAST_1) You'll need to use the name
-         * Regions.EU_WEST_1.name().
+         * parameter, the configuration will expect the lowercase name of the
+         * region (for example ap-east-1) You'll need to use the name
+         * Region.EU_WEST_1.id().
          * 
          * The option is a: <code>java.lang.String</code> type.
          * 


[camel] 03/03: 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 92c152f2c38004a0fac6d81f6968ccadb2eed4bc
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 16 10:59:36 2020 +0100

    Regen docs
---
 .../modules/ROOT/pages/aws2-translate-component.adoc      | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/docs/components/modules/ROOT/pages/aws2-translate-component.adoc b/docs/components/modules/ROOT/pages/aws2-translate-component.adoc
index 1197c01..95c3cac 100644
--- a/docs/components/modules/ROOT/pages/aws2-translate-component.adoc
+++ b/docs/components/modules/ROOT/pages/aws2-translate-component.adoc
@@ -4,11 +4,6 @@
 
 *Since Camel 3.1*
 
-*Since Camel 3.1*
-
-
-*Since Camel 3.1*
-
 
 // HEADER START
 *Only producer is supported*
@@ -88,7 +83,7 @@ with the following path and query parameters:
 | *proxyHost* (producer) | To define a proxy host when instantiating the Translate client |  | String
 | *proxyPort* (producer) | To define a proxy port when instantiating the Translate client |  | Integer
 | *proxyProtocol* (producer) | To define a proxy protocol when instantiating the Translate client | HTTPS | Protocol
-| *region* (producer) | The region in which Translate client needs to work. When using this parameter, the configuration will expect the capitalized name of the region (for example AP_EAST_1) You'll need to use the name Regions.EU_WEST_1.name() |  | String
+| *region* (producer) | The region in which Translate client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example ap-east-1) You'll need to use the name Region.EU_WEST_1.id() |  | String
 | *secretKey* (producer) | Amazon AWS Secret Key |  | String
 | *sourceLanguage* (producer) | Source language to use |  | String
 | *targetLanguage* (producer) | Target language to use |  | String
@@ -132,9 +127,9 @@ Camel-AWS Translate component provides the following operation on the producer s
 
 - translateText
 
-== Automatic detection of AmazonTranslate client in registry
+== Automatic detection of TranslateClient client in registry
 
-The component is capable of detecting the presence of an AmazonTranslate bean into the registry.
+The component is capable of detecting the presence of an TranslateClient bean into the registry.
 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.
 
@@ -145,7 +140,7 @@ from("direct:start")
   .setHeader(TranslateConstants.SOURCE_LANGUAGE, TranslateLanguageEnum.ITALIAN)
   .setHeader(TranslateConstants.TARGET_LANGUAGE, TranslateLanguageEnum.GERMAN)
   .setBody("Ciao")
-  .to("aws-translate://test?translateClient=#amazonTranslateClient&operation=translateText");
+  .to("aws2-translate://test?translateClient=#amazonTranslateClient&operation=translateText");
 ------------------------------------------------------------------------------------------------------
 
 As result you'll get an exchange containing the translated text.
@@ -165,4 +160,4 @@ Maven users will need to add the following dependency to their pom.xml.
 </dependency>
 ---------------------------------------
 
-where `$\{camel-version\}` must be replaced by the actual version of Camel.
\ No newline at end of file
+where `$\{camel-version\}` must be replaced by the actual version of Camel.