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 ffc66fad217477e48991e0945c96ac795917c8d0 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Sun Sep 29 16:27:14 2019 +0200 CAMEL-14002 - Regen docs --- .../src/main/docs/aws-sqs-component.adoc | 3 +- .../endpoint/dsl/SqsEndpointBuilderFactory.java | 33 ++++++++++++++++++++++ .../sqs/springboot/SqsComponentConfiguration.java | 12 ++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) diff --git a/components/camel-aws-sqs/src/main/docs/aws-sqs-component.adoc b/components/camel-aws-sqs/src/main/docs/aws-sqs-component.adoc index edd74b4..0c68104 100644 --- a/components/camel-aws-sqs/src/main/docs/aws-sqs-component.adoc +++ b/components/camel-aws-sqs/src/main/docs/aws-sqs-component.adoc @@ -68,7 +68,7 @@ with the following path and query parameters: |=== -=== Query Parameters (55 parameters): +=== Query Parameters (56 parameters): [width="100%",cols="2,5,^1,2",options="header"] @@ -78,6 +78,7 @@ with the following path and query parameters: | *amazonSQSClient* (common) | To use the AmazonSQS as client | | AmazonSQS | *autoCreateQueue* (common) | Setting the autocreation of the queue | true | boolean | *headerFilterStrategy* (common) | To use a custom HeaderFilterStrategy to map headers to/from Camel. | | HeaderFilterStrategy +| *protocol* (common) | The underlying protocol used to communicate with SQS | https | String | *queueOwnerAWSAccountId* (common) | Specify the queue owner aws account id when you need to connect the queue with different account owner. | | String | *region* (common) | Specify the queue region which could be used with queueOwnerAWSAccountId to build the service URL. 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 | *attributeNames* (consumer) | A list of attribute names to receive when consuming. Multiple names can be separated by comma. | | String diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SqsEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SqsEndpointBuilderFactory.java index d52d600..d15ef0d 100644 --- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SqsEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SqsEndpointBuilderFactory.java @@ -137,6 +137,17 @@ public interface SqsEndpointBuilderFactory { return this; } /** + * The underlying protocol used to communicate with SQS. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + */ + default SqsEndpointConsumerBuilder protocol(String protocol) { + doSetProperty("protocol", protocol); + return this; + } + /** * Specify the queue owner aws account id when you need to connect the * queue with different account owner. * @@ -1325,6 +1336,17 @@ public interface SqsEndpointBuilderFactory { return this; } /** + * The underlying protocol used to communicate with SQS. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + */ + default SqsEndpointProducerBuilder protocol(String protocol) { + doSetProperty("protocol", protocol); + return this; + } + /** * Specify the queue owner aws account id when you need to connect the * queue with different account owner. * @@ -1864,6 +1886,17 @@ public interface SqsEndpointBuilderFactory { return this; } /** + * The underlying protocol used to communicate with SQS. + * + * The option is a: <code>java.lang.String</code> type. + * + * Group: common + */ + default SqsEndpointBuilder protocol(String protocol) { + doSetProperty("protocol", protocol); + return this; + } + /** * Specify the queue owner aws account id when you need to connect the * queue with different account owner. * diff --git a/platforms/spring-boot/components-starter/camel-aws-sqs-starter/src/main/java/org/apache/camel/component/aws/sqs/springboot/SqsComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-aws-sqs-starter/src/main/java/org/apache/camel/component/aws/sqs/springboot/SqsComponentConfiguration.java index 49af144..c750214 100644 --- a/platforms/spring-boot/components-starter/camel-aws-sqs-starter/src/main/java/org/apache/camel/component/aws/sqs/springboot/SqsComponentConfiguration.java +++ b/platforms/spring-boot/components-starter/camel-aws-sqs-starter/src/main/java/org/apache/camel/component/aws/sqs/springboot/SqsComponentConfiguration.java @@ -281,6 +281,10 @@ public class SqsComponentConfiguration * Setting the autocreation of the queue */ private Boolean autoCreateQueue = true; + /** + * The underlying protocol used to communicate with SQS + */ + private String protocol = "https"; public String getAmazonAWSHost() { return amazonAWSHost; @@ -550,5 +554,13 @@ public class SqsComponentConfiguration public void setAutoCreateQueue(Boolean autoCreateQueue) { this.autoCreateQueue = autoCreateQueue; } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } } } \ No newline at end of file