This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 4cb0e62e6cd4f705a0f486c1f7666c6a9c236817
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Apr 14 10:47:55 2023 +0200

    CAMEL-19266 - Camel-AWS2-S3: Add a forcePathStyle option to configuration
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../apache/camel/component/aws2/s3/AWS2S3ComponentConfigurer.java   | 6 ++++++
 .../apache/camel/component/aws2/s3/AWS2S3EndpointConfigurer.java    | 6 ++++++
 .../apache/camel/component/aws2/s3/AWS2S3EndpointUriFactory.java    | 3 ++-
 .../resources/org/apache/camel/component/aws2/s3/aws2-s3.json       | 2 ++
 4 files changed, 16 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3ComponentConfigurer.java
 
b/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3ComponentConfigurer.java
index 90c7662081d..782376b3f32 100644
--- 
a/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3ComponentConfigurer.java
+++ 
b/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3ComponentConfigurer.java
@@ -70,6 +70,8 @@ public class AWS2S3ComponentConfigurer extends 
PropertyConfigurerSupport impleme
         case "doneFileName": 
getOrCreateConfiguration(target).setDoneFileName(property(camelContext, 
java.lang.String.class, value)); return true;
         case "filename":
         case "fileName": 
getOrCreateConfiguration(target).setFileName(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "forcepathstyle":
+        case "forcePathStyle": 
getOrCreateConfiguration(target).setForcePathStyle(property(camelContext, 
boolean.class, value)); return true;
         case "ignorebody":
         case "ignoreBody": 
getOrCreateConfiguration(target).setIgnoreBody(property(camelContext, 
boolean.class, value)); return true;
         case "includebody":
@@ -182,6 +184,8 @@ public class AWS2S3ComponentConfigurer extends 
PropertyConfigurerSupport impleme
         case "doneFileName": return java.lang.String.class;
         case "filename":
         case "fileName": return java.lang.String.class;
+        case "forcepathstyle":
+        case "forcePathStyle": return boolean.class;
         case "ignorebody":
         case "ignoreBody": return boolean.class;
         case "includebody":
@@ -290,6 +294,8 @@ public class AWS2S3ComponentConfigurer extends 
PropertyConfigurerSupport impleme
         case "doneFileName": return 
getOrCreateConfiguration(target).getDoneFileName();
         case "filename":
         case "fileName": return getOrCreateConfiguration(target).getFileName();
+        case "forcepathstyle":
+        case "forcePathStyle": return 
getOrCreateConfiguration(target).isForcePathStyle();
         case "ignorebody":
         case "ignoreBody": return 
getOrCreateConfiguration(target).isIgnoreBody();
         case "includebody":
diff --git 
a/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3EndpointConfigurer.java
 
b/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3EndpointConfigurer.java
index 1c5d426cc01..51a9a73a4a3 100644
--- 
a/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3EndpointConfigurer.java
+++ 
b/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3EndpointConfigurer.java
@@ -71,6 +71,8 @@ public class AWS2S3EndpointConfigurer extends 
PropertyConfigurerSupport implemen
         case "exchangePattern": 
target.setExchangePattern(property(camelContext, 
org.apache.camel.ExchangePattern.class, value)); return true;
         case "filename":
         case "fileName": 
target.getConfiguration().setFileName(property(camelContext, 
java.lang.String.class, value)); return true;
+        case "forcepathstyle":
+        case "forcePathStyle": 
target.getConfiguration().setForcePathStyle(property(camelContext, 
boolean.class, value)); return true;
         case "greedy": target.setGreedy(property(camelContext, boolean.class, 
value)); return true;
         case "ignorebody":
         case "ignoreBody": 
target.getConfiguration().setIgnoreBody(property(camelContext, boolean.class, 
value)); return true;
@@ -217,6 +219,8 @@ public class AWS2S3EndpointConfigurer extends 
PropertyConfigurerSupport implemen
         case "exchangePattern": return org.apache.camel.ExchangePattern.class;
         case "filename":
         case "fileName": return java.lang.String.class;
+        case "forcepathstyle":
+        case "forcePathStyle": return boolean.class;
         case "greedy": return boolean.class;
         case "ignorebody":
         case "ignoreBody": return boolean.class;
@@ -359,6 +363,8 @@ public class AWS2S3EndpointConfigurer extends 
PropertyConfigurerSupport implemen
         case "exchangePattern": return target.getExchangePattern();
         case "filename":
         case "fileName": return target.getConfiguration().getFileName();
+        case "forcepathstyle":
+        case "forcePathStyle": return 
target.getConfiguration().isForcePathStyle();
         case "greedy": return target.isGreedy();
         case "ignorebody":
         case "ignoreBody": return target.getConfiguration().isIgnoreBody();
diff --git 
a/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3EndpointUriFactory.java
 
b/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3EndpointUriFactory.java
index 0af4defff2b..8a9340cbbd4 100644
--- 
a/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3EndpointUriFactory.java
+++ 
b/components/camel-aws/camel-aws2-s3/src/generated/java/org/apache/camel/component/aws2/s3/AWS2S3EndpointUriFactory.java
@@ -21,7 +21,7 @@ public class AWS2S3EndpointUriFactory extends 
org.apache.camel.support.component
     private static final Set<String> SECRET_PROPERTY_NAMES;
     private static final Set<String> MULTI_VALUE_PREFIXES;
     static {
-        Set<String> props = new HashSet<>(72);
+        Set<String> props = new HashSet<>(73);
         props.add("accessKey");
         props.add("amazonS3Client");
         props.add("amazonS3Presigner");
@@ -49,6 +49,7 @@ public class AWS2S3EndpointUriFactory extends 
org.apache.camel.support.component
         props.add("exceptionHandler");
         props.add("exchangePattern");
         props.add("fileName");
+        props.add("forcePathStyle");
         props.add("greedy");
         props.add("ignoreBody");
         props.add("includeBody");
diff --git 
a/components/camel-aws/camel-aws2-s3/src/generated/resources/org/apache/camel/component/aws2/s3/aws2-s3.json
 
b/components/camel-aws/camel-aws2-s3/src/generated/resources/org/apache/camel/component/aws2/s3/aws2-s3.json
index 60835d54f56..27e3213f4a7 100644
--- 
a/components/camel-aws/camel-aws2-s3/src/generated/resources/org/apache/camel/component/aws2/s3/aws2-s3.json
+++ 
b/components/camel-aws/camel-aws2-s3/src/generated/resources/org/apache/camel/component/aws2/s3/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." },
@@ -114,6 +115,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." },

Reply via email to