You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/07/05 19:02:53 UTC

[camel] branch camel-3.x updated: CAMEL-19279: Align with main due to some syntax fixes and CS

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

davsclaus pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.x by this push:
     new c6aad40240c CAMEL-19279: Align with main due to some syntax fixes and CS
c6aad40240c is described below

commit c6aad40240cc0b48c2cf9283119494b54634a37a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Jul 5 21:02:41 2023 +0200

    CAMEL-19279: Align with main due to some syntax fixes and CS
---
 .../camel/catalog/components/azure-files.json      |  5 +++--
 components/camel-azure/camel-azure-files/pom.xml   |  5 -----
 .../file/azure/FilesEndpointUriFactory.java        | 10 ++++++----
 .../camel/component/file/azure/azure-files.json    |  5 +++--
 .../component/file/azure/FilesConfiguration.java   |  7 +++++++
 .../camel/component/file/azure/FilesEndpoint.java  |  6 +++---
 .../camel/component/file/azure/FilesPath.java      | 16 ++++++++++++++++
 .../camel/component/file/azure/FilesProducer.java  | 16 ++++++++++++++++
 .../camel/component/file/azure/FilesToken.java     | 18 +++++++++++++++++-
 .../component/file/azure/FilesURIStrings.java      | 16 ++++++++++++++++
 .../component/file/azure/NormalizedOperations.java | 16 ++++++++++++++++
 .../file/azure/FilesConfigurationTests.java        | 16 ++++++++++++++++
 .../component/file/azure/FilesEndpointTests.java   | 18 +++++++++++++++++-
 .../camel/component/file/azure/FilesPathTests.java | 16 ++++++++++++++++
 .../component/file/azure/FilesURIStringsTests.java | 16 ++++++++++++++++
 .../src/generated/resources/metadata.json          |  2 +-
 .../builder/endpoint/StaticEndpointBuilders.java   | 22 ++++++++++++++--------
 .../endpoint/dsl/FilesEndpointBuilderFactory.java  | 22 ++++++++++++++--------
 18 files changed, 197 insertions(+), 35 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json
index 616aa01abae..87c1588eaf9 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/azure-files.json
@@ -15,7 +15,7 @@
     "version": "3.21.0-SNAPSHOT",
     "scheme": "azure-files",
     "extendsScheme": "file",
-    "syntax": "azure-files:\/\/account[.host]\/share[\/dir]",
+    "syntax": "azure-files:\/\/account\/share",
     "async": false,
     "api": false,
     "consumerOnly": false,
@@ -38,7 +38,8 @@
     "CamelFileHost": { "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The remote hostname.", "constantName": "org.apache.camel.component.file.azure.FilesHeaders#FILE_HOST" }
   },
   "properties": {
-    "host": { "kind": "path", "displayName": "Host", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Hostname of the FTP server" },
+    "account": { "kind": "path", "displayName": "Account", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The account to use" },
+    "share": { "kind": "path", "displayName": "Share", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The share to use" },
     "port": { "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Port of the FTP server" },
     "directoryName": { "kind": "path", "displayName": "Directory Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The starting directory" },
     "disconnect": { "kind": "parameter", "displayName": "Disconnect", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether or not to disconnect from remote FTP server right after use. Disconnect will only disconnect the current connection to the FTP server. If you have a consumer which you want to stop, then you need to stop the consumer\/ [...]
diff --git a/components/camel-azure/camel-azure-files/pom.xml b/components/camel-azure/camel-azure-files/pom.xml
index ea9c231da1d..4064dd1580a 100644
--- a/components/camel-azure/camel-azure-files/pom.xml
+++ b/components/camel-azure/camel-azure-files/pom.xml
@@ -26,17 +26,12 @@
         <version>3.21.0-SNAPSHOT</version>
     </parent>
 
-    <groupId>org.apache.camel</groupId>
     <artifactId>camel-azure-files</artifactId>
     <packaging>jar</packaging>
 
     <name>Camel :: Azure Files</name>
     <description>Camel Azure Files Component</description>
 
-    <properties>
-        <minimalJavaBuildVersion>11</minimalJavaBuildVersion>
-    </properties>
-
     <dependencies>
         <dependency>
             <groupId>org.apache.camel</groupId>
diff --git a/components/camel-azure/camel-azure-files/src/generated/java/org/apache/camel/component/file/azure/FilesEndpointUriFactory.java b/components/camel-azure/camel-azure-files/src/generated/java/org/apache/camel/component/file/azure/FilesEndpointUriFactory.java
index f9bf8fd91a4..a57395d0533 100644
--- a/components/camel-azure/camel-azure-files/src/generated/java/org/apache/camel/component/file/azure/FilesEndpointUriFactory.java
+++ b/components/camel-azure/camel-azure-files/src/generated/java/org/apache/camel/component/file/azure/FilesEndpointUriFactory.java
@@ -15,13 +15,14 @@ import org.apache.camel.spi.EndpointUriFactory;
  */
 public class FilesEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
 
-    private static final String BASE = "://account[.host]/share[/dir]";
+    private static final String BASE = "://account/share";
 
     private static final Set<String> PROPERTY_NAMES;
     private static final Set<String> SECRET_PROPERTY_NAMES;
     private static final Set<String> MULTI_VALUE_PREFIXES;
     static {
-        Set<String> props = new HashSet<>(100);
+        Set<String> props = new HashSet<>(101);
+        props.add("account");
         props.add("allowNullBody");
         props.add("antExclude");
         props.add("antFilterCaseSensitive");
@@ -53,7 +54,6 @@ public class FilesEndpointUriFactory extends org.apache.camel.support.component.
         props.add("filterFile");
         props.add("flatten");
         props.add("greedy");
-        props.add("host");
         props.add("idempotent");
         props.add("idempotentKey");
         props.add("idempotentRepository");
@@ -100,6 +100,7 @@ public class FilesEndpointUriFactory extends org.apache.camel.support.component.
         props.add("sdd");
         props.add("se");
         props.add("sendEmptyMessageWhenIdle");
+        props.add("share");
         props.add("sharedKey");
         props.add("shuffle");
         props.add("si");
@@ -155,7 +156,8 @@ public class FilesEndpointUriFactory extends org.apache.camel.support.component.
 
         Map<String, Object> copy = new HashMap<>(properties);
 
-        uri = buildPathParameter(syntax, uri, "host", null, true, copy);
+        uri = buildPathParameter(syntax, uri, "account", null, true, copy);
+        uri = buildPathParameter(syntax, uri, "share", null, true, copy);
         uri = buildPathParameter(syntax, uri, "port", null, false, copy);
         uri = buildPathParameter(syntax, uri, "directoryName", null, false, copy);
         uri = buildQueryParameters(uri, copy, encode);
diff --git a/components/camel-azure/camel-azure-files/src/generated/resources/org/apache/camel/component/file/azure/azure-files.json b/components/camel-azure/camel-azure-files/src/generated/resources/org/apache/camel/component/file/azure/azure-files.json
index 616aa01abae..87c1588eaf9 100644
--- a/components/camel-azure/camel-azure-files/src/generated/resources/org/apache/camel/component/file/azure/azure-files.json
+++ b/components/camel-azure/camel-azure-files/src/generated/resources/org/apache/camel/component/file/azure/azure-files.json
@@ -15,7 +15,7 @@
     "version": "3.21.0-SNAPSHOT",
     "scheme": "azure-files",
     "extendsScheme": "file",
-    "syntax": "azure-files:\/\/account[.host]\/share[\/dir]",
+    "syntax": "azure-files:\/\/account\/share",
     "async": false,
     "api": false,
     "consumerOnly": false,
@@ -38,7 +38,8 @@
     "CamelFileHost": { "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The remote hostname.", "constantName": "org.apache.camel.component.file.azure.FilesHeaders#FILE_HOST" }
   },
   "properties": {
-    "host": { "kind": "path", "displayName": "Host", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Hostname of the FTP server" },
+    "account": { "kind": "path", "displayName": "Account", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The account to use" },
+    "share": { "kind": "path", "displayName": "Share", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The share to use" },
     "port": { "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "Port of the FTP server" },
     "directoryName": { "kind": "path", "displayName": "Directory Name", "group": "common", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.file.azure.FilesConfiguration", "configurationField": "configuration", "description": "The starting directory" },
     "disconnect": { "kind": "parameter", "displayName": "Disconnect", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether or not to disconnect from remote FTP server right after use. Disconnect will only disconnect the current connection to the FTP server. If you have a consumer which you want to stop, then you need to stop the consumer\/ [...]
diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConfiguration.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConfiguration.java
index 000eda2ecd7..a70eeff832a 100644
--- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConfiguration.java
+++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesConfiguration.java
@@ -19,8 +19,10 @@ package org.apache.camel.component.file.azure;
 import java.net.URI;
 
 import org.apache.camel.component.file.remote.RemoteFileConfiguration;
+import org.apache.camel.spi.Metadata;
 import org.apache.camel.spi.UriParam;
 import org.apache.camel.spi.UriParams;
+import org.apache.camel.spi.UriPath;
 
 @UriParams
 public class FilesConfiguration extends RemoteFileConfiguration {
@@ -31,7 +33,12 @@ public class FilesConfiguration extends RemoteFileConfiguration {
     @UriParam(label = "both", description = "Shared key (storage account key)", secret = true)
     private String sharedKey;
 
+    @UriPath(name = "account", description = "The account to use")
+    @Metadata(required = true)
     private String account;
+
+    @UriPath(name = "share", description = "The share to use")
+    @Metadata(required = true)
     private String share;
 
     public FilesConfiguration() {
diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesEndpoint.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesEndpoint.java
index 53dedf411c9..e2cce3770df 100644
--- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesEndpoint.java
+++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesEndpoint.java
@@ -36,7 +36,7 @@ import org.apache.camel.util.ObjectHelper;
 
 // , extendsScheme = "file"   in FTPS but AzureBlob does not have it
 @UriEndpoint(firstVersion = "3.21.0", scheme = FilesComponent.SCHEME, extendsScheme = "file", title = "Azure Files",
-             syntax = FilesComponent.SCHEME + "://account[.host]/share[/dir]", category = {
+             syntax = FilesComponent.SCHEME + "://account/share", category = {
                      Category.CLOUD, Category.FILE },
              headersClass = FilesHeaders.class)
 @Metadata(excludeProperties = "appendChars,readLockIdempotentReleaseAsync,readLockIdempotentReleaseAsyncPoolSize,"
@@ -45,12 +45,12 @@ import org.apache.camel.util.ObjectHelper;
                               + "startingDirectoryMustHaveAccess,chmodDirectory,forceWrites,copyAndDeleteOnRenameFail,"
                               + "renameUsingCopy,synchronous,passive,passiveMode,stepwise,useList,binary,charset,password,"
                               + "siteCommand,fastExistsCheck,soTimeout,separator,sendNoop,ignoreFileNotFoundOrPermissionError,"
-                              + "bufferSize,moveExisting,username")
+                              + "bufferSize,moveExisting,username,host")
 @ManagedResource(description = "Camel Azure Files endpoint")
 public class FilesEndpoint extends RemoteFileEndpoint<ShareFileItem> {
 
     // without hiding configuration field from type GenericFileEndpoint<ShareFileItem>
-    // camel-package-maven-plugin: Missing @UriPath on endpoint 
+    // camel-package-maven-plugin: Missing @UriPath on endpoint
     @UriParam
     protected FilesConfiguration configuration;
 
diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesPath.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesPath.java
index 9cd32b1e309..141e95a07de 100644
--- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesPath.java
+++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesPath.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.file.azure;
 
 /**
diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesProducer.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesProducer.java
index d1d3b507454..e529300e030 100644
--- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesProducer.java
+++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesProducer.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.file.azure;
 
 import com.azure.storage.file.share.models.ShareFileItem;
diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesToken.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesToken.java
index 23627708933..bfcd61ae89c 100644
--- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesToken.java
+++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesToken.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.file.azure;
 
 import java.net.URISyntaxException;
@@ -12,7 +28,7 @@ import org.apache.camel.spi.UriParams;
  * Azure Files account or service SAS token.
  * <p>
  * The user delegation SAS token is not specified for Azure Files.
- * 
+ *
  * @see com.azure.storage.common.implementation.Constants.UrlConstants
  * @see <a href="https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas">Azure account SAS</a>
  * @see <a href="https://learn.microsoft.com/en-us/rest/api/storageservices/create-service-sas">Azure service SAS</a>
diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesURIStrings.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesURIStrings.java
index aeab897e143..5a3268e70fb 100644
--- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesURIStrings.java
+++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/FilesURIStrings.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.file.azure;
 
 import java.net.URI;
diff --git a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/NormalizedOperations.java b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/NormalizedOperations.java
index 156bea13e91..05b6cbbe24c 100644
--- a/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/NormalizedOperations.java
+++ b/components/camel-azure/camel-azure-files/src/main/java/org/apache/camel/component/file/azure/NormalizedOperations.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.file.azure;
 
 import com.azure.storage.file.share.models.ShareFileItem;
diff --git a/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesConfigurationTests.java b/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesConfigurationTests.java
index 98fd801c7ba..5b2e47d3a07 100644
--- a/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesConfigurationTests.java
+++ b/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesConfigurationTests.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.file.azure;
 
 import org.apache.camel.test.junit5.CamelTestSupport;
diff --git a/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesEndpointTests.java b/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesEndpointTests.java
index 46d1bae7516..c9aefe75e3e 100644
--- a/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesEndpointTests.java
+++ b/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesEndpointTests.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.file.azure;
 
 import org.apache.camel.test.junit5.CamelTestSupport;
@@ -15,7 +31,7 @@ public class FilesEndpointTests extends CamelTestSupport {
         // by observation Camel decoded sig=gj UKSiCWSHmcubvGhyJhatkP8hkbXkrmV  Zme CxI=
         // using URISupport sig=gj+UKSiCWSHmcubvGhyJhatkP8hkbXkrmV++Zme+CxI=
         //  leads to "Signature size is invalid" response from server
-        // likely need to post-process replacing + by %2B 
+        // likely need to post-process replacing + by %2B
         // Camel also sorted params before calling setters
         var endpoint = context.getEndpoint(
                 "azure-files://account/share?" + plainToken, FilesEndpoint.class);
diff --git a/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesPathTests.java b/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesPathTests.java
index a063652604b..4932d2be1b0 100644
--- a/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesPathTests.java
+++ b/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesPathTests.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.file.azure;
 
 import org.junit.jupiter.api.Test;
diff --git a/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesURIStringsTests.java b/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesURIStringsTests.java
index bb7e7c0c940..7e77baeede5 100644
--- a/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesURIStringsTests.java
+++ b/components/camel-azure/camel-azure-files/src/test/java/org/apache/camel/component/file/azure/FilesURIStringsTests.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.camel.component.file.azure;
 
 import org.junit.jupiter.api.Test;
diff --git a/dsl/camel-componentdsl/src/generated/resources/metadata.json b/dsl/camel-componentdsl/src/generated/resources/metadata.json
index 8df27ae1eb8..fe8bf802f7b 100644
--- a/dsl/camel-componentdsl/src/generated/resources/metadata.json
+++ b/dsl/camel-componentdsl/src/generated/resources/metadata.json
@@ -788,7 +788,7 @@
     "version": "3.21.0-SNAPSHOT",
     "scheme": "azure-files",
     "extendsScheme": "file",
-    "syntax": "azure-files:\/\/account[.host]\/share[\/dir]",
+    "syntax": "azure-files:\/\/account\/share",
     "async": false,
     "api": false,
     "consumerOnly": false,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 98213427150..6b743a5777c 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -1646,10 +1646,13 @@ public class StaticEndpointBuilders {
      * Since: 3.21
      * Maven coordinates: org.apache.camel:camel-azure-files
      * 
-     * Syntax: <code>azure-files://account[.host]/share[/dir]</code>
+     * Syntax: <code>azure-files://account/share</code>
      * 
-     * Path parameter: host (required)
-     * Hostname of the FTP server
+     * Path parameter: account (required)
+     * The account to use
+     * 
+     * Path parameter: share (required)
+     * The share to use
      * 
      * Path parameter: port
      * Port of the FTP server
@@ -1657,7 +1660,7 @@ public class StaticEndpointBuilders {
      * Path parameter: directoryName
      * The starting directory
      * 
-     * @param path //account[.host]/share[/dir]
+     * @param path //account/share
      * @return the dsl builder
      */
     public static org.apache.camel.builder.endpoint.dsl.FilesEndpointBuilderFactory.FilesEndpointBuilder azureFiles(
@@ -1672,10 +1675,13 @@ public class StaticEndpointBuilders {
      * Since: 3.21
      * Maven coordinates: org.apache.camel:camel-azure-files
      * 
-     * Syntax: <code>azure-files://account[.host]/share[/dir]</code>
+     * Syntax: <code>azure-files://account/share</code>
      * 
-     * Path parameter: host (required)
-     * Hostname of the FTP server
+     * Path parameter: account (required)
+     * The account to use
+     * 
+     * Path parameter: share (required)
+     * The share to use
      * 
      * Path parameter: port
      * Port of the FTP server
@@ -1685,7 +1691,7 @@ public class StaticEndpointBuilders {
      * 
      * @param componentName to use a custom component name for the endpoint
      * instead of the default name
-     * @param path //account[.host]/share[/dir]
+     * @param path //account/share
      * @return the dsl builder
      */
     public static org.apache.camel.builder.endpoint.dsl.FilesEndpointBuilderFactory.FilesEndpointBuilder azureFiles(
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java
index 77d32076cfa..c9244c32152 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/FilesEndpointBuilderFactory.java
@@ -4155,10 +4155,13 @@ public interface FilesEndpointBuilderFactory {
          * Since: 3.21
          * Maven coordinates: org.apache.camel:camel-azure-files
          * 
-         * Syntax: <code>azure-files://account[.host]/share[/dir]</code>
+         * Syntax: <code>azure-files://account/share</code>
          * 
-         * Path parameter: host (required)
-         * Hostname of the FTP server
+         * Path parameter: account (required)
+         * The account to use
+         * 
+         * Path parameter: share (required)
+         * The share to use
          * 
          * Path parameter: port
          * Port of the FTP server
@@ -4166,7 +4169,7 @@ public interface FilesEndpointBuilderFactory {
          * Path parameter: directoryName
          * The starting directory
          * 
-         * @param path //account[.host]/share[/dir]
+         * @param path //account/share
          * @return the dsl builder
          */
         default FilesEndpointBuilder azureFiles(String path) {
@@ -4180,10 +4183,13 @@ public interface FilesEndpointBuilderFactory {
          * Since: 3.21
          * Maven coordinates: org.apache.camel:camel-azure-files
          * 
-         * Syntax: <code>azure-files://account[.host]/share[/dir]</code>
+         * Syntax: <code>azure-files://account/share</code>
+         * 
+         * Path parameter: account (required)
+         * The account to use
          * 
-         * Path parameter: host (required)
-         * Hostname of the FTP server
+         * Path parameter: share (required)
+         * The share to use
          * 
          * Path parameter: port
          * Port of the FTP server
@@ -4193,7 +4199,7 @@ public interface FilesEndpointBuilderFactory {
          * 
          * @param componentName to use a custom component name for the endpoint
          * instead of the default name
-         * @param path //account[.host]/share[/dir]
+         * @param path //account/share
          * @return the dsl builder
          */
         default FilesEndpointBuilder azureFiles(