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 2018/01/25 10:13:02 UTC
[camel] 02/02: CAMEL-12190 - Camel-AWS S3: Add a parameter to
specify chunkedEncodingDisabled option - regen docs and fixed CS
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 0961821f07f148c2646aa7a8e4454090231b149e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jan 25 11:09:55 2018 +0100
CAMEL-12190 - Camel-AWS S3: Add a parameter to specify chunkedEncodingDisabled option - regen docs and fixed CS
---
components/camel-aws/src/main/docs/aws-s3-component.adoc | 3 ++-
.../component/aws/s3/S3ComponentVerifierExtensionTest.java | 2 --
.../component/aws/swf/SwfComponentVerifierExtensionTest.java | 1 -
.../aws/s3/springboot/S3ComponentConfiguration.java | 12 ++++++++++++
4 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/components/camel-aws/src/main/docs/aws-s3-component.adoc b/components/camel-aws/src/main/docs/aws-s3-component.adoc
index d5e42a1..157096a 100644
--- a/components/camel-aws/src/main/docs/aws-s3-component.adoc
+++ b/components/camel-aws/src/main/docs/aws-s3-component.adoc
@@ -77,7 +77,7 @@ with the following path and query parameters:
| *bucketNameOrArn* | *Required* Bucket name or ARN | | String
|===
-==== Query Parameters (45 parameters):
+==== Query Parameters (46 parameters):
[width="100%",cols="2,5,^1,2",options="header"]
|===
@@ -112,6 +112,7 @@ with the following path and query parameters:
| *storageClass* (producer) | The storage class to set in the com.amazonaws.services.s3.model.PutObjectRequest request. | | String
| *useAwsKMS* (producer) | Define if KMS must be used or not | false | boolean
| *synchronous* (advanced) | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported). | false | boolean
+| *chunkedEncodingDisabled* ( advanced) | Define if disabled Chunked Encoding is true or false | false | boolean
| *backoffErrorThreshold* (scheduler) | The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in. | | int
| *backoffIdleThreshold* (scheduler) | The number of subsequent idle polls that should happen before the backoffMultipler should kick-in. | | int
| *backoffMultiplier* (scheduler) | To let the scheduled polling consumer backoff if there has been a number of subsequent idles/errors in a row. The multiplier is then the number of polls that will be skipped before the next actual attempt is happening again. When this option is in use then backoffIdleThreshold and/or backoffErrorThreshold must also be configured. | | int
diff --git a/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/S3ComponentVerifierExtensionTest.java b/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/S3ComponentVerifierExtensionTest.java
index ad3a638..6d5da98 100644
--- a/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/S3ComponentVerifierExtensionTest.java
+++ b/components/camel-aws/src/test/java/org/apache/camel/component/aws/s3/S3ComponentVerifierExtensionTest.java
@@ -19,8 +19,6 @@ package org.apache.camel.component.aws.s3;
import java.util.HashMap;
import java.util.Map;
-import com.amazonaws.regions.Regions;
-
import org.apache.camel.Component;
import org.apache.camel.component.extension.ComponentVerifierExtension;
import org.apache.camel.test.junit4.CamelTestSupport;
diff --git a/components/camel-aws/src/test/java/org/apache/camel/component/aws/swf/SwfComponentVerifierExtensionTest.java b/components/camel-aws/src/test/java/org/apache/camel/component/aws/swf/SwfComponentVerifierExtensionTest.java
index 7cf38c1..7531780 100644
--- a/components/camel-aws/src/test/java/org/apache/camel/component/aws/swf/SwfComponentVerifierExtensionTest.java
+++ b/components/camel-aws/src/test/java/org/apache/camel/component/aws/swf/SwfComponentVerifierExtensionTest.java
@@ -64,7 +64,6 @@ public class SwfComponentVerifierExtensionTest extends CamelTestSupport {
parameters.put("type", "activity");
ComponentVerifierExtension.Result result = verifier.verify(ComponentVerifierExtension.Scope.CONNECTIVITY, parameters);
-
Assert.assertEquals(ComponentVerifierExtension.Result.Status.ERROR, result.getStatus());
}
diff --git a/platforms/spring-boot/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java b/platforms/spring-boot/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
index 20f336e..c19c0f6 100644
--- a/platforms/spring-boot/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
+++ b/platforms/spring-boot/components-starter/camel-aws-starter/src/main/java/org/apache/camel/component/aws/s3/springboot/S3ComponentConfiguration.java
@@ -235,6 +235,10 @@ public class S3ComponentConfiguration
* Define the id of KMS key to use in case KMS is enabled
*/
private String awsKMSKeyId;
+ /**
+ * Define if disabled Chunked Encoding is true or false
+ */
+ private Boolean chunkedEncodingDisabled = false;
public Long getPartSize() {
return partSize;
@@ -436,5 +440,13 @@ public class S3ComponentConfiguration
public void setAwsKMSKeyId(String awsKMSKeyId) {
this.awsKMSKeyId = awsKMSKeyId;
}
+
+ public Boolean getChunkedEncodingDisabled() {
+ return chunkedEncodingDisabled;
+ }
+
+ public void setChunkedEncodingDisabled(Boolean chunkedEncodingDisabled) {
+ this.chunkedEncodingDisabled = chunkedEncodingDisabled;
+ }
}
}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.