This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-spring-boot-3.x
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git
The following commit(s) were added to refs/heads/camel-spring-boot-3.x by this
push:
new c3481d2bbb9 [create-pull-request] automated change
c3481d2bbb9 is described below
commit c3481d2bbb97e713481e63490ec001b8b458e24b
Author: orpiske <[email protected]>
AuthorDate: Sat Apr 15 01:00:30 2023 +0000
[create-pull-request] automated change
---
.../apache/camel/springboot/catalog/components/aws2-s3.json | 2 ++
.../camel-aws2-s3-starter/src/main/docs/aws2-s3.json | 7 +++++++
.../aws2/s3/springboot/AWS2S3ComponentConfiguration.java | 13 +++++++++++++
3 files changed, 22 insertions(+)
diff --git
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-s3.json
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-s3.json
index 48ec7648d30..6f6712ac879 100644
---
a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-s3.json
+++
b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/components/aws2-s3.json
@@ -27,6 +27,7 @@
"autoCreateBucket": { "kind": "property", "displayName": "Auto Create
Bucket", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Setting the autocreation of the S3 bucket
bucketName. This will apply also in case of moveAfte [...]
"configuration": { "kind": "property", "displayName": "Configuration",
"group": "common", "label": "", "required": false, "type": "object",
"javaType": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"deprecated": false, "autowired": false, "secret": false, "description": "The
component configuration" },
"delimiter": { "kind": "property", "displayName": "Delimiter", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "The delimiter which is
used in the com.amazonaws.services.s3.model.ListObjectsRequest to only consume
objects we are interested in." },
+ "forcePathStyle": { "kind": "property", "displayName": "Force Path Style",
"group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Set whether the S3 client should use
path-style URL instead of virtual-hosted-style" },
"overrideEndpoint": { "kind": "property", "displayName": "Override
Endpoint", "group": "common", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Set the need for overidding the endpoint. This
option needs to be used in combination with uriEndpoin [...]
"pojoRequest": { "kind": "property", "displayName": "Pojo Request",
"group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "If we want to use a POJO request as body or
not" },
"policy": { "kind": "property", "displayName": "Policy", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "The policy for this
queue to set in the com.amazonaws.services.s3.AmazonS3#setBucketPolicy()
method." },
@@ -112,6 +113,7 @@
"amazonS3Presigner": { "kind": "parameter", "displayName": "Amazon S3
Presigner", "group": "common", "label": "", "required": false, "type":
"object", "javaType":
"software.amazon.awssdk.services.s3.presigner.S3Presigner", "deprecated":
false, "deprecationNote": "", "autowired": true, "secret": false,
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "An S3 Presigner for
Request, used mainly in create [...]
"autoCreateBucket": { "kind": "parameter", "displayName": "Auto Create
Bucket", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Setting the autocreation of the S3 bucket
bucketName. This will apply also in case of moveAft [...]
"delimiter": { "kind": "parameter", "displayName": "Delimiter", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "The delimiter which is
used in the com.amazonaws.services.s3.model.ListObjectsRequest to only consume
objects we are interested in." },
+ "forcePathStyle": { "kind": "parameter", "displayName": "Force Path
Style", "group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Set whether the S3 client should use
path-style URL instead of virtual-hosted-style" },
"overrideEndpoint": { "kind": "parameter", "displayName": "Override
Endpoint", "group": "common", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "Set the need for overidding the endpoint. This
option needs to be used in combination with uriEndpoi [...]
"pojoRequest": { "kind": "parameter", "displayName": "Pojo Request",
"group": "common", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.aws2.s3.AWS2S3Configuration", "configurationField":
"configuration", "description": "If we want to use a POJO request as body or
not" },
"policy": { "kind": "parameter", "displayName": "Policy", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.aws2.s3.AWS2S3Configuration",
"configurationField": "configuration", "description": "The policy for this
queue to set in the com.amazonaws.services.s3.AmazonS3#setBucketPolicy()
method." },
diff --git
a/components-starter/camel-aws2-s3-starter/src/main/docs/aws2-s3.json
b/components-starter/camel-aws2-s3-starter/src/main/docs/aws2-s3.json
index df7f3c3005c..92c0f69b62f 100644
--- a/components-starter/camel-aws2-s3-starter/src/main/docs/aws2-s3.json
+++ b/components-starter/camel-aws2-s3-starter/src/main/docs/aws2-s3.json
@@ -164,6 +164,13 @@
"description": "To get the object from the bucket with the given file
name",
"sourceType":
"org.apache.camel.component.aws2.s3.springboot.AWS2S3ComponentConfiguration"
},
+ {
+ "name": "camel.component.aws2-s3.force-path-style",
+ "type": "java.lang.Boolean",
+ "description": "Set whether the S3 client should use path-style URL
instead of virtual-hosted-style",
+ "sourceType":
"org.apache.camel.component.aws2.s3.springboot.AWS2S3ComponentConfiguration",
+ "defaultValue": false
+ },
{
"name": "camel.component.aws2-s3.ignore-body",
"type": "java.lang.Boolean",
diff --git
a/components-starter/camel-aws2-s3-starter/src/main/java/org/apache/camel/component/aws2/s3/springboot/AWS2S3ComponentConfiguration.java
b/components-starter/camel-aws2-s3-starter/src/main/java/org/apache/camel/component/aws2/s3/springboot/AWS2S3ComponentConfiguration.java
index 8cb7fb80169..8d523eb5994 100644
---
a/components-starter/camel-aws2-s3-starter/src/main/java/org/apache/camel/component/aws2/s3/springboot/AWS2S3ComponentConfiguration.java
+++
b/components-starter/camel-aws2-s3-starter/src/main/java/org/apache/camel/component/aws2/s3/springboot/AWS2S3ComponentConfiguration.java
@@ -73,6 +73,11 @@ public class AWS2S3ComponentConfiguration
* objects we are interested in.
*/
private String delimiter;
+ /**
+ * Set whether the S3 client should use path-style URL instead of
+ * virtual-hosted-style
+ */
+ private Boolean forcePathStyle = false;
/**
* Set the need for overidding the endpoint. This option needs to be used
in
* combination with uriEndpointOverride option
@@ -357,6 +362,14 @@ public class AWS2S3ComponentConfiguration
this.delimiter = delimiter;
}
+ public Boolean getForcePathStyle() {
+ return forcePathStyle;
+ }
+
+ public void setForcePathStyle(Boolean forcePathStyle) {
+ this.forcePathStyle = forcePathStyle;
+ }
+
public Boolean getOverrideEndpoint() {
return overrideEndpoint;
}