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

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


The following commit(s) were added to refs/heads/master by this push:
     new e06260f  Camel-azure-storage-blob: remove deprecated setSize and 
getSize with other cleanups (#4393)
e06260f is described below

commit e06260fde8645e26d52867cfaab9f3ae0d771ef5
Author: Denis Istomin <[email protected]>
AuthorDate: Thu Oct 8 09:48:16 2020 +0500

    Camel-azure-storage-blob: remove deprecated setSize and getSize with other 
cleanups (#4393)
---
 .../catalog/docs/azure-storage-blob-component.adoc |  4 +--
 .../azure/storage/blob/azure-storage-blob.json     |  4 +--
 .../main/docs/azure-storage-blob-component.adoc    |  4 +--
 .../component/azure/storage/blob/BlobBlock.java    |  6 ++--
 .../azure/storage/blob/BlobComponent.java          | 24 ++++++++-------
 .../azure/storage/blob/BlobConfiguration.java      |  4 +--
 .../storage/blob/operations/BlobOperations.java    | 13 +++++---
 .../azure/storage/blob/BlobComponentTest.java      | 29 +++++++++--------
 .../blob/BlobConfigurationOptionsProxyTest.java    |  2 +-
 .../azure/storage/blob/BlobConsumerIT.java         |  6 ++--
 .../azure/storage/blob/BlobProducerIT.java         | 14 ++++-----
 .../blob/operations/BlobContainerOperationsIT.java |  4 +--
 .../operations/BlobContainerOperationsTest.java    | 10 +++---
 .../storage/blob/operations/BlobOperationsIT.java  | 22 ++++++-------
 .../blob/operations/BlobOperationsTest.java        | 12 ++++----
 .../AzureStorageBlobComponentBuilderFactory.java   |  6 ++--
 .../endpoint/dsl/BlobEndpointBuilderFactory.java   | 36 +++++++++++-----------
 .../ROOT/pages/azure-storage-blob-component.adoc   |  4 +--
 18 files changed, 106 insertions(+), 98 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-storage-blob-component.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-storage-blob-component.adoc
index 88c0ca8..3a9944b 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-storage-blob-component.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/azure-storage-blob-component.adoc
@@ -84,7 +84,7 @@ The Azure Storage Blob Service component supports 27 options, 
which are listed b
 | *maxResultsPerPage* (common) | Specifies the maximum number of blobs to 
return, including all BlobPrefix elements. If the request does not specify 
maxResultsPerPage or specifies a value greater than 5,000, the server will 
return up to 5,000 items. |  | Integer
 | *maxRetryRequests* (common) | Specifies the maximum number of additional 
HTTP Get requests that will be made while reading the data from a response 
body. | 0 | int
 | *prefix* (common) | Filters the results to return only blobs whose names 
begin with the specified prefix. May be null to return all blobs. |  | String
-| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through getBlobContainerClient(String), and operations on a 
blob are available on B [...]
+| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through BlobServiceClient#getBlobContainerClient(String), 
and operations on a blob  [...]
 | *timeout* (common) | An optional timeout value beyond which a 
RuntimeException will be raised. |  | Duration
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *blobSequenceNumber* (producer) | A user-controlled value that you can use 
to track requests. The value of the sequence number must be between 0 and 263 - 
1.The default value is 0. | 0 | Long
@@ -140,7 +140,7 @@ with the following path and query parameters:
 | *maxResultsPerPage* (common) | Specifies the maximum number of blobs to 
return, including all BlobPrefix elements. If the request does not specify 
maxResultsPerPage or specifies a value greater than 5,000, the server will 
return up to 5,000 items. |  | Integer
 | *maxRetryRequests* (common) | Specifies the maximum number of additional 
HTTP Get requests that will be made while reading the data from a response 
body. | 0 | int
 | *prefix* (common) | Filters the results to return only blobs whose names 
begin with the specified prefix. May be null to return all blobs. |  | String
-| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through getBlobContainerClient(String), and operations on a 
blob are available on B [...]
+| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through BlobServiceClient#getBlobContainerClient(String), 
and operations on a blob  [...]
 | *timeout* (common) | An optional timeout value beyond which a 
RuntimeException will be raised. |  | Duration
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *exceptionHandler* (consumer) | To let the consumer use a custom 
ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this 
option is not in use. By default the consumer will deal with exceptions, that 
will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
diff --git 
a/components/camel-azure-storage-blob/src/generated/resources/org/apache/camel/component/azure/storage/blob/azure-storage-blob.json
 
b/components/camel-azure-storage-blob/src/generated/resources/org/apache/camel/component/azure/storage/blob/azure-storage-blob.json
index 84c8cd4..4fff902 100644
--- 
a/components/camel-azure-storage-blob/src/generated/resources/org/apache/camel/component/azure/storage/blob/azure-storage-blob.json
+++ 
b/components/camel-azure-storage-blob/src/generated/resources/org/apache/camel/component/azure/storage/blob/azure-storage-blob.json
@@ -34,7 +34,7 @@
     "maxResultsPerPage": { "kind": "property", "displayName": "Max Results Per 
Page", "group": "common", "label": "common", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": 
false, "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Specifies the maximum 
number of blobs to return, including all BlobPrefix elements. If the request 
does not specify [...]
     "maxRetryRequests": { "kind": "property", "displayName": "Max Retry 
Requests", "group": "common", "label": "common", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "secret": false, 
"defaultValue": "0", "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Specifies the maximum 
number of additional HTTP Get requests that will be made while reading the data 
from a re [...]
     "prefix": { "kind": "property", "displayName": "Prefix", "group": 
"common", "label": "common", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "secret": false, "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Filters the results to 
return only blobs whose names begin with the specified prefix. May be null to 
return all blobs." },
-    "serviceClient": { "kind": "property", "displayName": "Service Client", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "com.azure.storage.blob.BlobServiceClient", "deprecated": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Client to a storage 
account. This client does not hold any state about a particular storage account 
but is in [...]
+    "serviceClient": { "kind": "property", "displayName": "Service Client", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "com.azure.storage.blob.BlobServiceClient", "deprecated": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Client to a storage 
account. This client does not hold any state about a particular storage account 
but is in [...]
     "timeout": { "kind": "property", "displayName": "Timeout", "group": 
"common", "label": "common", "required": false, "type": "object", "javaType": 
"java.time.Duration", "deprecated": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "An optional timeout 
value beyond which a RuntimeException will be raised." },
     "bridgeErrorHandler": { "kind": "property", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by [...]
     "blobSequenceNumber": { "kind": "property", "displayName": "Blob Sequence 
Number", "group": "producer", "label": "producer", "required": false, "type": 
"integer", "javaType": "java.lang.Long", "deprecated": false, "secret": false, 
"defaultValue": "0", "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "A user-controlled value 
that you can use to track requests. The value of the sequence number [...]
@@ -65,7 +65,7 @@
     "maxResultsPerPage": { "kind": "parameter", "displayName": "Max Results 
Per Page", "group": "common", "label": "common", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": 
false, "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Specifies the maximum 
number of blobs to return, including all BlobPrefix elements. If the request 
does not specif [...]
     "maxRetryRequests": { "kind": "parameter", "displayName": "Max Retry 
Requests", "group": "common", "label": "common", "required": false, "type": 
"integer", "javaType": "int", "deprecated": false, "secret": false, 
"defaultValue": "0", "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Specifies the maximum 
number of additional HTTP Get requests that will be made while reading the data 
from a r [...]
     "prefix": { "kind": "parameter", "displayName": "Prefix", "group": 
"common", "label": "common", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "secret": false, "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Filters the results to 
return only blobs whose names begin with the specified prefix. May be null to 
return all blobs." },
-    "serviceClient": { "kind": "parameter", "displayName": "Service Client", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "com.azure.storage.blob.BlobServiceClient", "deprecated": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Client to a storage 
account. This client does not hold any state about a particular storage account 
but is i [...]
+    "serviceClient": { "kind": "parameter", "displayName": "Service Client", 
"group": "common", "label": "", "required": false, "type": "object", 
"javaType": "com.azure.storage.blob.BlobServiceClient", "deprecated": false, 
"secret": false, "configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "Client to a storage 
account. This client does not hold any state about a particular storage account 
but is i [...]
     "timeout": { "kind": "parameter", "displayName": "Timeout", "group": 
"common", "label": "common", "required": false, "type": "object", "javaType": 
"java.time.Duration", "deprecated": false, "secret": false, 
"configurationClass": 
"org.apache.camel.component.azure.storage.blob.BlobConfiguration", 
"configurationField": "configuration", "description": "An optional timeout 
value beyond which a RuntimeException will be raised." },
     "bridgeErrorHandler": { "kind": "parameter", "displayName": "Bridge Error 
Handler", "group": "consumer", "label": "consumer", "required": false, "type": 
"boolean", "javaType": "boolean", "deprecated": false, "secret": false, 
"defaultValue": false, "description": "Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled b [...]
     "exceptionHandler": { "kind": "parameter", "displayName": "Exception 
Handler", "group": "consumer (advanced)", "label": "consumer,advanced", 
"required": false, "type": "object", "javaType": 
"org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", 
"deprecated": false, "secret": false, "description": "To let the consumer use a 
custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled 
then this option is not in use. By default the consumer will deal with [...]
diff --git 
a/components/camel-azure-storage-blob/src/main/docs/azure-storage-blob-component.adoc
 
b/components/camel-azure-storage-blob/src/main/docs/azure-storage-blob-component.adoc
index 88c0ca8..3a9944b 100644
--- 
a/components/camel-azure-storage-blob/src/main/docs/azure-storage-blob-component.adoc
+++ 
b/components/camel-azure-storage-blob/src/main/docs/azure-storage-blob-component.adoc
@@ -84,7 +84,7 @@ The Azure Storage Blob Service component supports 27 options, 
which are listed b
 | *maxResultsPerPage* (common) | Specifies the maximum number of blobs to 
return, including all BlobPrefix elements. If the request does not specify 
maxResultsPerPage or specifies a value greater than 5,000, the server will 
return up to 5,000 items. |  | Integer
 | *maxRetryRequests* (common) | Specifies the maximum number of additional 
HTTP Get requests that will be made while reading the data from a response 
body. | 0 | int
 | *prefix* (common) | Filters the results to return only blobs whose names 
begin with the specified prefix. May be null to return all blobs. |  | String
-| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through getBlobContainerClient(String), and operations on a 
blob are available on B [...]
+| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through BlobServiceClient#getBlobContainerClient(String), 
and operations on a blob  [...]
 | *timeout* (common) | An optional timeout value beyond which a 
RuntimeException will be raised. |  | Duration
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *blobSequenceNumber* (producer) | A user-controlled value that you can use 
to track requests. The value of the sequence number must be between 0 and 263 - 
1.The default value is 0. | 0 | Long
@@ -140,7 +140,7 @@ with the following path and query parameters:
 | *maxResultsPerPage* (common) | Specifies the maximum number of blobs to 
return, including all BlobPrefix elements. If the request does not specify 
maxResultsPerPage or specifies a value greater than 5,000, the server will 
return up to 5,000 items. |  | Integer
 | *maxRetryRequests* (common) | Specifies the maximum number of additional 
HTTP Get requests that will be made while reading the data from a response 
body. | 0 | int
 | *prefix* (common) | Filters the results to return only blobs whose names 
begin with the specified prefix. May be null to return all blobs. |  | String
-| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through getBlobContainerClient(String), and operations on a 
blob are available on B [...]
+| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through BlobServiceClient#getBlobContainerClient(String), 
and operations on a blob  [...]
 | *timeout* (common) | An optional timeout value beyond which a 
RuntimeException will be raised. |  | Duration
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *exceptionHandler* (consumer) | To let the consumer use a custom 
ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this 
option is not in use. By default the consumer will deal with exceptions, that 
will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler
diff --git 
a/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobBlock.java
 
b/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobBlock.java
index 8806fc2..e079a51 100644
--- 
a/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobBlock.java
+++ 
b/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobBlock.java
@@ -37,11 +37,11 @@ public final class BlobBlock {
     }
 
     public static BlobBlock createBlobBlock(final String blockId, final 
InputStream inputStream) throws IOException {
-        return createBlobBlock(blockId, 
BlobUtils.getInputStreamLength(inputStream).intValue(), inputStream);
+        return createBlobBlock(blockId, 
BlobUtils.getInputStreamLength(inputStream), inputStream);
     }
 
-    public static BlobBlock createBlobBlock(final String blockId, final int 
size, final InputStream inputStream) {
-        final Block block = new Block().setName(blockId).setSize(size);
+    public static BlobBlock createBlobBlock(final String blockId, final long 
size, final InputStream inputStream) {
+        final Block block = new Block().setName(blockId).setSizeLong(size);
 
         return new BlobBlock(block, inputStream);
     }
diff --git 
a/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobComponent.java
 
b/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobComponent.java
index 1f26022..75e1e9d 100644
--- 
a/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobComponent.java
+++ 
b/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobComponent.java
@@ -55,28 +55,29 @@ public class BlobComponent extends DefaultComponent {
             throw new IllegalArgumentException("At least the account name must 
be specified.");
         }
 
-        final BlobConfiguration configuration
-                = this.configuration != null ? this.configuration.copy() : new 
BlobConfiguration();
+        final BlobConfiguration config = this.configuration != null
+                ? this.configuration.copy()
+                : new BlobConfiguration();
 
         final String[] parts = remaining.split("/");
 
         // only account name is being set
-        configuration.setAccountName(parts[0]);
+        config.setAccountName(parts[0]);
 
         // also container name is being set
         if (parts.length > 1) {
-            configuration.setContainerName(parts[1]);
+            config.setContainerName(parts[1]);
         }
 
-        final BlobEndpoint endpoint = new BlobEndpoint(uri, this, 
configuration);
+        final BlobEndpoint endpoint = new BlobEndpoint(uri, this, config);
         setProperties(endpoint, parameters);
 
-        if (configuration.isAutoDiscoverClient()) {
-            checkAndSetRegistryClient(configuration);
+        if (config.isAutoDiscoverClient()) {
+            checkAndSetRegistryClient(config);
         }
 
-        checkCredentials(configuration);
-        validateConfigurations(configuration);
+        checkCredentials(config);
+        validateConfigurations(config);
 
         return endpoint;
     }
@@ -95,7 +96,7 @@ public class BlobComponent extends DefaultComponent {
     private void checkCredentials(final BlobConfiguration configuration) {
         final BlobServiceClient client = configuration.getServiceClient();
 
-        //if no azureBlobClient is provided fallback to credentials
+        // if no azureBlobClient is provided fallback to credentials
         if (client == null) {
             Set<StorageSharedKeyCredential> storageSharedKeyCredentials
                     = 
getCamelContext().getRegistry().findByType(StorageSharedKeyCredential.class);
@@ -121,7 +122,8 @@ public class BlobComponent extends DefaultComponent {
     }
 
     private void validateConfigurations(final BlobConfiguration configuration) 
{
-        if (configuration.getServiceClient() == null && 
configuration.getAccessKey() == null
+        if (configuration.getServiceClient() == null
+                && configuration.getAccessKey() == null
                 && configuration.getCredentials() == null) {
             throw new IllegalArgumentException("Azure Storage accessKey or 
BlobServiceClient must be specified.");
         }
diff --git 
a/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobConfiguration.java
 
b/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobConfiguration.java
index d367faf..a0cec95 100644
--- 
a/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobConfiguration.java
+++ 
b/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobConfiguration.java
@@ -126,8 +126,8 @@ public class BlobConfiguration implements Cloneable {
      * to construct URLs to blobs and containers.
      *
      * This client contains operations on a service account. Operations on a 
container are available on
-     * {@link BlobContainerClient} through {@link 
#getBlobContainerClient(String)}, and operations on a blob are
-     * available on {@link BlobClient} through {@link 
#getBlobContainerClient(String).getBlobClient(String)}.
+     * {@link BlobContainerClient} through {@link 
BlobServiceClient#getBlobContainerClient(String)}, and operations on a
+     * blob are available on {@link BlobClient} through {@link 
BlobContainerClient#getBlobClient(String)}.
      */
     public BlobServiceClient getServiceClient() {
         return serviceClient;
diff --git 
a/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperations.java
 
b/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperations.java
index 8de7139..3c0849c 100644
--- 
a/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperations.java
+++ 
b/components/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperations.java
@@ -177,7 +177,7 @@ public class BlobOperations {
 
     public BlobOperationResponse downloadLink(final Exchange exchange) {
         final OffsetDateTime offsetDateTime = OffsetDateTime.now();
-        final long defaultExpirationTime = 60 * 60; // 1 hour
+        final long defaultExpirationTime = 60L * 60L; // 1 hour
         final BlobSasPermission sasPermission = new 
BlobSasPermission().setReadPermission(true); // only read access
 
         if (exchange == null) {
@@ -235,7 +235,7 @@ public class BlobOperations {
 
         List<BlobBlock> blobBlocks = null;
         if (object instanceof List) {
-            //noinspection unchecked
+            // noinspection unchecked
             blobBlocks = (List<BlobBlock>) object;
         } else if (object instanceof BlobBlock) {
             blobBlocks = Collections.singletonList((BlobBlock) object);
@@ -252,9 +252,12 @@ public class BlobOperations {
 
         blobBlocks.forEach(blobBlock -> {
             blockEntries.add(blobBlock.getBlockEntry());
-            client.stageBlockBlob(blobBlock.getBlockEntry().getName(), 
blobBlock.getBlockStream(),
-                    blobBlock.getBlockEntry().getSize(),
-                    commonRequestOptions.getContentMD5(), 
commonRequestOptions.leaseId(), commonRequestOptions.getTimeout());
+            client.stageBlockBlob(blobBlock.getBlockEntry().getName(),
+                    blobBlock.getBlockStream(),
+                    blobBlock.getBlockEntry().getSizeLong(),
+                    commonRequestOptions.getContentMD5(),
+                    commonRequestOptions.leaseId(),
+                    commonRequestOptions.getTimeout());
         });
 
         final boolean commitBlockListLater = 
configurationProxy.isCommitBlockListLater(exchange);
diff --git 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobComponentTest.java
 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobComponentTest.java
index 3ab1b3f..fe787f6 100644
--- 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobComponentTest.java
+++ 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobComponentTest.java
@@ -20,6 +20,7 @@ import java.util.Collections;
 
 import com.azure.storage.blob.BlobServiceClient;
 import com.azure.storage.common.StorageSharedKeyCredential;
+import org.apache.camel.Producer;
 import org.apache.camel.component.azure.storage.blob.client.BlobClientFactory;
 import org.apache.camel.support.DefaultExchange;
 import org.apache.camel.test.junit5.CamelTestSupport;
@@ -35,7 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
 class BlobComponentTest extends CamelTestSupport {
 
     @Test
-    public void testCreateEndpointWithMinConfigForClientOnly() {
+    void testCreateEndpointWithMinConfigForClientOnly() {
         final BlobConfiguration configuration = new BlobConfiguration();
         configuration.setCredentials(storageSharedKeyCredential());
         final BlobServiceClient serviceClient = 
BlobClientFactory.createBlobServiceClient(configuration);
@@ -49,7 +50,7 @@ class BlobComponentTest extends CamelTestSupport {
     }
 
     @Test
-    public void testCreateEndpointWithMinConfigForCredsOnly() throws Exception 
{
+    void testCreateEndpointWithMinConfigForCredsOnly() throws Exception {
         context.getRegistry().bind("creds", storageSharedKeyCredential());
 
         final BlobEndpoint endpoint = (BlobEndpoint) context
@@ -79,14 +80,15 @@ class BlobComponentTest extends CamelTestSupport {
     }
 
     @Test
-    public void testCreateEndpointWithMaxConfig() {
+    void testCreateEndpointWithMaxConfig() {
         context.getRegistry().bind("creds", storageSharedKeyCredential());
         context.getRegistry().bind("metadata", Collections.emptyMap());
 
-        final BlobEndpoint endpoint = (BlobEndpoint) context.getEndpoint(
-                
"azure-storage-blob://camelazure/container?blobName=blob&credentials=#creds&blobType=pageblob"
-                                                                         + 
"&fileDir=/tmp&blobOffset=512&operation=clearPageBlob&dataCount=1024"
-                                                                         + 
"&closeStreamAfterRead=false&closeStreamAfterWrite=false");
+        final String uri = "azure-storage-blob://camelazure/container"
+                           + 
"?blobName=blob&credentials=#creds&blobType=pageblob"
+                           + 
"&fileDir=/tmp&blobOffset=512&operation=clearPageBlob&dataCount=1024"
+                           + 
"&closeStreamAfterRead=false&closeStreamAfterWrite=false";
+        final BlobEndpoint endpoint = (BlobEndpoint) context.getEndpoint(uri);
 
         assertEquals("camelazure", 
endpoint.getConfiguration().getAccountName());
         assertEquals("container", 
endpoint.getConfiguration().getContainerName());
@@ -104,19 +106,20 @@ class BlobComponentTest extends CamelTestSupport {
     }
 
     @Test
-    public void testNoBlobNameProducerWithOpThatNeedsBlobName() throws 
Exception {
+    void testNoBlobNameProducerWithOpThatNeedsBlobName() throws Exception {
         context.getRegistry().bind("creds", storageSharedKeyCredential());
 
         BlobEndpoint endpointWithOp = (BlobEndpoint) context.getEndpoint(
                 
"azure-storage-blob://camelazure/container?operation=deleteBlob&credentials=#creds");
 
-        assertThrows(IllegalArgumentException.class, () -> {
-            endpointWithOp.createProducer().process(new 
DefaultExchange(context));
-        });
+        Producer producer = endpointWithOp.createProducer();
+        DefaultExchange exchange = new DefaultExchange(context);
+
+        assertThrows(IllegalArgumentException.class, () -> 
producer.process(exchange));
     }
 
     @Test
-    public void testHierarchicalBlobName() throws Exception {
+    void testHierarchicalBlobName() throws Exception {
         context.getRegistry().bind("creds", storageSharedKeyCredential());
 
         BlobEndpoint endpoint = (BlobEndpoint) context
@@ -125,7 +128,7 @@ class BlobComponentTest extends CamelTestSupport {
     }
 
     @Test
-    public void testNoBlobNameConsumer() throws Exception {
+    void testNoBlobNameConsumer() throws Exception {
         context.getRegistry().bind("creds", storageSharedKeyCredential());
 
         BlobEndpoint endpoint = (BlobEndpoint) context.getEndpoint(
diff --git 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobConfigurationOptionsProxyTest.java
 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobConfigurationOptionsProxyTest.java
index 6633914..94991ed 100644
--- 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobConfigurationOptionsProxyTest.java
+++ 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobConfigurationOptionsProxyTest.java
@@ -27,7 +27,7 @@ import static org.junit.jupiter.api.Assertions.assertNull;
 class BlobConfigurationOptionsProxyTest extends CamelTestSupport {
 
     @Test
-    public void testIfCorrectOptionsReturnedCorrectly() {
+    void testIfCorrectOptionsReturnedCorrectly() {
         final BlobConfiguration configuration = new BlobConfiguration();
 
         // first case: when exchange is set
diff --git 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobConsumerIT.java
 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobConsumerIT.java
index d34a13a..aa763a5 100644
--- 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobConsumerIT.java
+++ 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobConsumerIT.java
@@ -48,7 +48,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertNotNull;
 
 @TestInstance(TestInstance.Lifecycle.PER_CLASS)
-public class BlobConsumerIT extends CamelTestSupport {
+class BlobConsumerIT extends CamelTestSupport {
 
     @TempDir
     static Path testDir;
@@ -80,7 +80,7 @@ public class BlobConsumerIT extends CamelTestSupport {
     }
 
     @Test
-    public void testPollingToFile() throws IOException, InterruptedException {
+    void testPollingToFile() throws IOException, InterruptedException {
         templateStart.send("direct:createBlob", ExchangePattern.InOnly, 
exchange -> {
             exchange.getIn().setBody("Block Blob");
             exchange.getIn().setHeader(BlobConstants.BLOB_CONTAINER_NAME, 
containerName);
@@ -97,7 +97,7 @@ public class BlobConsumerIT extends CamelTestSupport {
     }
 
     @Test
-    public void testPollingToInputStream() throws InterruptedException, 
IOException {
+    void testPollingToInputStream() throws InterruptedException, IOException {
         templateStart.send("direct:createBlob", ExchangePattern.InOnly, 
exchange -> {
             exchange.getIn().setBody("Block Blob");
             exchange.getIn().setHeader(BlobConstants.BLOB_CONTAINER_NAME, 
containerName);
diff --git 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobProducerIT.java
 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobProducerIT.java
index 1ff3c5a..53737d4 100644
--- 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobProducerIT.java
+++ 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/BlobProducerIT.java
@@ -47,7 +47,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 @TestInstance(TestInstance.Lifecycle.PER_CLASS)
-public class BlobProducerIT extends CamelTestSupport {
+class BlobProducerIT extends CamelTestSupport {
 
     @EndpointInject
     private ProducerTemplate template;
@@ -76,7 +76,7 @@ public class BlobProducerIT extends CamelTestSupport {
     }
 
     @Test
-    public void testUploadBlockBlob() throws InterruptedException {
+    void testUploadBlockBlob() throws InterruptedException {
         final String blobName = RandomStringUtils.randomAlphabetic(10);
 
         result.expectedMessageCount(1);
@@ -90,7 +90,7 @@ public class BlobProducerIT extends CamelTestSupport {
     }
 
     @Test
-    public void testCommitAndStageBlockBlob() throws InterruptedException, 
IOException {
+    void testCommitAndStageBlockBlob() throws InterruptedException, 
IOException {
         final String blobName = RandomStringUtils.randomAlphabetic(10);
 
         result.expectedMessageCount(1);
@@ -115,7 +115,7 @@ public class BlobProducerIT extends CamelTestSupport {
     }
 
     @Test
-    public void testCommitAppendBlobWithError() throws InterruptedException {
+    void testCommitAppendBlobWithError() throws InterruptedException {
         final String blobName = RandomStringUtils.randomAlphabetic(10);
 
         template.send("direct:commitAppendBlobWithError", 
ExchangePattern.InOnly, exchange -> {
@@ -135,7 +135,7 @@ public class BlobProducerIT extends CamelTestSupport {
     }
 
     @Test
-    public void testCreateAndUpdateAppendBlob() throws InterruptedException {
+    void testCreateAndUpdateAppendBlob() throws InterruptedException {
         final String blobName = RandomStringUtils.randomAlphabetic(10);
 
         result.expectedMessageCount(1);
@@ -158,7 +158,7 @@ public class BlobProducerIT extends CamelTestSupport {
     }
 
     @Test
-    public void testCreateAndUploadPageBlob() throws InterruptedException {
+    void testCreateAndUploadPageBlob() throws InterruptedException {
         final String blobName = RandomStringUtils.randomAlphabetic(10);
 
         result.expectedMessageCount(1);
@@ -183,7 +183,7 @@ public class BlobProducerIT extends CamelTestSupport {
     }
 
     @Test
-    public void testUploadBlockBlobWithConfigUri() throws InterruptedException 
{
+    void testUploadBlockBlobWithConfigUri() throws InterruptedException {
         result.expectedMessageCount(1);
 
         template.send("direct:uploadBlockBlobWithConfigUri", 
ExchangePattern.InOnly,
diff --git 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobContainerOperationsIT.java
 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobContainerOperationsIT.java
index 739bae8..bdd496c 100644
--- 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobContainerOperationsIT.java
+++ 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobContainerOperationsIT.java
@@ -41,7 +41,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 @TestInstance(TestInstance.Lifecycle.PER_CLASS)
-public class BlobContainerOperationsIT extends CamelTestSupport {
+class BlobContainerOperationsIT extends CamelTestSupport {
 
     private BlobConfiguration configuration;
     private BlobServiceClientWrapper blobServiceClientWrapper;
@@ -58,7 +58,7 @@ public class BlobContainerOperationsIT extends 
CamelTestSupport {
     }
 
     @Test
-    public void testCreateAndDeleteContainer() {
+    void testCreateAndDeleteContainer() {
         final BlobContainerClientWrapper containerClientWrapper
                 = 
blobServiceClientWrapper.getBlobContainerClientWrapper("testcontainer1");
         final BlobContainerOperations blobContainerOperations
diff --git 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobContainerOperationsTest.java
 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobContainerOperationsTest.java
index 4e2d639..e162257 100644
--- 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobContainerOperationsTest.java
+++ 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobContainerOperationsTest.java
@@ -54,7 +54,7 @@ class BlobContainerOperationsTest {
     }
 
     @Test
-    public void testCreateContainer() {
+    void testCreateContainer() {
         when(client.createContainer(any(), any(), 
any())).thenReturn(createContainerMock());
 
         final BlobContainerOperations blobContainerOperations = new 
BlobContainerOperations(configuration, client);
@@ -66,7 +66,7 @@ class BlobContainerOperationsTest {
     }
 
     @Test
-    public void testDeleteContainer() {
+    void testDeleteContainer() {
         when(client.deleteContainer(any(), 
any())).thenReturn(deleteContainerMock());
 
         final BlobContainerOperations blobContainerOperations = new 
BlobContainerOperations(configuration, client);
@@ -78,7 +78,7 @@ class BlobContainerOperationsTest {
     }
 
     @Test
-    public void testListBlob() {
+    void testListBlob() {
         when(client.listBlobs(any(), any())).thenReturn(listBlobsMock());
 
         final BlobContainerOperations blobContainerOperations = new 
BlobContainerOperations(configuration, client);
@@ -87,8 +87,8 @@ class BlobContainerOperationsTest {
         assertNotNull(response);
 
         @SuppressWarnings("unchecked")
-        final List<String> items
-                = ((List<BlobItem>) 
response.getBody()).stream().map(BlobItem::getName).collect(Collectors.toList());
+        final List<BlobItem> body = (List<BlobItem>) response.getBody();
+        final List<String> items = 
body.stream().map(BlobItem::getName).collect(Collectors.toList());
 
         assertTrue(items.contains("item-1"));
         assertTrue(items.contains("item-2"));
diff --git 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperationsIT.java
 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperationsIT.java
index d3a41f9..40913c3 100644
--- 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperationsIT.java
+++ 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperationsIT.java
@@ -100,7 +100,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testGetBlob(@TempDir Path testDir) throws IOException {
+    void testGetBlob(@TempDir Path testDir) throws IOException {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper(randomBlobName);
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -131,7 +131,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testDownloadToFile(@TempDir Path testDir) throws IOException {
+    void testDownloadToFile(@TempDir Path testDir) throws IOException {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper(randomBlobName);
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -153,7 +153,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testDownloadLink() {
+    void testDownloadLink() {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper(randomBlobName);
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -165,7 +165,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testUploadBlockBlob() throws Exception {
+    void testUploadBlockBlob() throws Exception {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper("upload_test_file");
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -213,7 +213,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testCommitAndStageBlockBlob() throws Exception {
+    void testCommitAndStageBlockBlob() throws Exception {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper("upload_test_file");
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -241,7 +241,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testGetBlobBlockList() {
+    void testGetBlobBlockList() {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper(randomBlobName);
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -253,7 +253,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testCreateAndUpdateAppendBlob() throws IOException {
+    void testCreateAndUpdateAppendBlob() throws IOException {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper("upload_test_file");
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -281,7 +281,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testCreateAndUploadPageBlob() throws IOException {
+    void testCreateAndUploadPageBlob() throws IOException {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper("upload_test_file");
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -312,7 +312,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testResizePageBlob() throws IOException {
+    void testResizePageBlob() throws IOException {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper("upload_test_file");
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -348,7 +348,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testClearPages() throws IOException {
+    void testClearPages() throws IOException {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper("upload_test_file");
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
@@ -377,7 +377,7 @@ class BlobOperationsIT extends CamelTestSupport {
     }
 
     @Test
-    public void testGetPageBlobRanges() throws IOException {
+    void testGetPageBlobRanges() throws IOException {
         final BlobClientWrapper blobClientWrapper = 
blobContainerClientWrapper.getBlobClientWrapper("upload_test_file");
         final BlobOperations operations = new BlobOperations(configuration, 
blobClientWrapper);
 
diff --git 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperationsTest.java
 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperationsTest.java
index 6de8e96..8a57b0b 100644
--- 
a/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperationsTest.java
+++ 
b/components/camel-azure-storage-blob/src/test/java/org/apache/camel/component/azure/storage/blob/operations/BlobOperationsTest.java
@@ -59,7 +59,7 @@ import static org.mockito.Mockito.when;
 
 @TestInstance(TestInstance.Lifecycle.PER_CLASS)
 @ExtendWith(MockitoExtension.class)
-public class BlobOperationsTest extends CamelTestSupport {
+class BlobOperationsTest extends CamelTestSupport {
 
     private BlobConfiguration configuration;
 
@@ -74,7 +74,7 @@ public class BlobOperationsTest extends CamelTestSupport {
     }
 
     @Test
-    public void testGetBlob() throws IOException {
+    void testGetBlob() throws IOException {
         // mocking
         final Map<String, Object> mockedResults = new HashMap<>();
         mockedResults.put("inputStream", new 
ByteArrayInputStream("testInput".getBytes(Charset.defaultCharset())));
@@ -104,7 +104,7 @@ public class BlobOperationsTest extends CamelTestSupport {
         assertNotNull(response2.getHeaders());
         assertNotNull(response2.getHeaders().get(BlobConstants.CREATION_TIME));
 
-        //third: test with exchange provided but with outputstream set
+        // third: test with exchange provided but with outputstream set
         // mocking
         final ResponseBase<BlobDownloadHeaders, Void> mockedResults2 = new 
ResponseBase<>(
                 null, 200, new HttpHeaders().put("x-test-header", "123"), 
null, new BlobDownloadHeaders().setETag("tag1"));
@@ -116,11 +116,11 @@ public class BlobOperationsTest extends CamelTestSupport {
         assertNotNull(response3);
         assertNotNull(response3.getBody());
         assertNotNull(response3.getHeaders());
-        assertEquals(response3.getHeaders().get(BlobConstants.E_TAG), "tag1");
+        assertEquals("tag1", response3.getHeaders().get(BlobConstants.E_TAG));
     }
 
     @Test
-    public void testUploadBlockBlob() throws Exception {
+    void testUploadBlockBlob() throws Exception {
         // mocking
         final BlockBlobItem blockBlobItem = new BlockBlobItem("testTag", 
OffsetDateTime.now(), null, false, null);
         final HttpHeaders httpHeaders = new HttpHeaders().put("x-test-header", 
"123");
@@ -145,7 +145,7 @@ public class BlobOperationsTest extends CamelTestSupport {
     }
 
     @Test
-    public void testStageBlockBlobList() throws Exception {
+    void testStageBlockBlobList() throws Exception {
         final HttpHeaders httpHeaders = new HttpHeaders().put("x-test-header", 
"123");
         when(client.stageBlockBlob(anyString(), any(), anyLong(), any(), 
any(), any())).thenReturn(httpHeaders);
 
diff --git 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureStorageBlobComponentBuilderFactory.java
 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureStorageBlobComponentBuilderFactory.java
index c86f217..4420eff 100644
--- 
a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureStorageBlobComponentBuilderFactory.java
+++ 
b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AzureStorageBlobComponentBuilderFactory.java
@@ -220,9 +220,9 @@ public interface AzureStorageBlobComponentBuilderFactory {
          * may also be used to construct URLs to blobs and containers. This
          * client contains operations on a service account. Operations on a
          * container are available on BlobContainerClient through
-         * getBlobContainerClient(String), and operations on a blob are
-         * available on BlobClient through
-         * getBlobContainerClient(String).getBlobClient(String).
+         * BlobServiceClient#getBlobContainerClient(String), and operations on 
a
+         * blob are available on BlobClient through
+         * BlobContainerClient#getBlobClient(String).
          * 
          * The option is a:
          * <code>com.azure.storage.blob.BlobServiceClient</code> type.
diff --git 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BlobEndpointBuilderFactory.java
 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BlobEndpointBuilderFactory.java
index e5c3ad4..963c4c9 100644
--- 
a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BlobEndpointBuilderFactory.java
+++ 
b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/BlobEndpointBuilderFactory.java
@@ -351,9 +351,9 @@ public interface BlobEndpointBuilderFactory {
          * may also be used to construct URLs to blobs and containers. This
          * client contains operations on a service account. Operations on a
          * container are available on BlobContainerClient through
-         * getBlobContainerClient(String), and operations on a blob are
-         * available on BlobClient through
-         * getBlobContainerClient(String).getBlobClient(String).
+         * BlobServiceClient#getBlobContainerClient(String), and operations on 
a
+         * blob are available on BlobClient through
+         * BlobContainerClient#getBlobClient(String).
          * 
          * The option is a:
          * <code>com.azure.storage.blob.BlobServiceClient</code> type.
@@ -371,9 +371,9 @@ public interface BlobEndpointBuilderFactory {
          * may also be used to construct URLs to blobs and containers. This
          * client contains operations on a service account. Operations on a
          * container are available on BlobContainerClient through
-         * getBlobContainerClient(String), and operations on a blob are
-         * available on BlobClient through
-         * getBlobContainerClient(String).getBlobClient(String).
+         * BlobServiceClient#getBlobContainerClient(String), and operations on 
a
+         * blob are available on BlobClient through
+         * BlobContainerClient#getBlobClient(String).
          * 
          * The option will be converted to a
          * <code>com.azure.storage.blob.BlobServiceClient</code> type.
@@ -904,9 +904,9 @@ public interface BlobEndpointBuilderFactory {
          * may also be used to construct URLs to blobs and containers. This
          * client contains operations on a service account. Operations on a
          * container are available on BlobContainerClient through
-         * getBlobContainerClient(String), and operations on a blob are
-         * available on BlobClient through
-         * getBlobContainerClient(String).getBlobClient(String).
+         * BlobServiceClient#getBlobContainerClient(String), and operations on 
a
+         * blob are available on BlobClient through
+         * BlobContainerClient#getBlobClient(String).
          * 
          * The option is a:
          * <code>com.azure.storage.blob.BlobServiceClient</code> type.
@@ -924,9 +924,9 @@ public interface BlobEndpointBuilderFactory {
          * may also be used to construct URLs to blobs and containers. This
          * client contains operations on a service account. Operations on a
          * container are available on BlobContainerClient through
-         * getBlobContainerClient(String), and operations on a blob are
-         * available on BlobClient through
-         * getBlobContainerClient(String).getBlobClient(String).
+         * BlobServiceClient#getBlobContainerClient(String), and operations on 
a
+         * blob are available on BlobClient through
+         * BlobContainerClient#getBlobClient(String).
          * 
          * The option will be converted to a
          * <code>com.azure.storage.blob.BlobServiceClient</code> type.
@@ -1642,9 +1642,9 @@ public interface BlobEndpointBuilderFactory {
          * may also be used to construct URLs to blobs and containers. This
          * client contains operations on a service account. Operations on a
          * container are available on BlobContainerClient through
-         * getBlobContainerClient(String), and operations on a blob are
-         * available on BlobClient through
-         * getBlobContainerClient(String).getBlobClient(String).
+         * BlobServiceClient#getBlobContainerClient(String), and operations on 
a
+         * blob are available on BlobClient through
+         * BlobContainerClient#getBlobClient(String).
          * 
          * The option is a:
          * <code>com.azure.storage.blob.BlobServiceClient</code> type.
@@ -1662,9 +1662,9 @@ public interface BlobEndpointBuilderFactory {
          * may also be used to construct URLs to blobs and containers. This
          * client contains operations on a service account. Operations on a
          * container are available on BlobContainerClient through
-         * getBlobContainerClient(String), and operations on a blob are
-         * available on BlobClient through
-         * getBlobContainerClient(String).getBlobClient(String).
+         * BlobServiceClient#getBlobContainerClient(String), and operations on 
a
+         * blob are available on BlobClient through
+         * BlobContainerClient#getBlobClient(String).
          * 
          * The option will be converted to a
          * <code>com.azure.storage.blob.BlobServiceClient</code> type.
diff --git 
a/docs/components/modules/ROOT/pages/azure-storage-blob-component.adoc 
b/docs/components/modules/ROOT/pages/azure-storage-blob-component.adoc
index 1c8d5e9..f2ce79a 100644
--- a/docs/components/modules/ROOT/pages/azure-storage-blob-component.adoc
+++ b/docs/components/modules/ROOT/pages/azure-storage-blob-component.adoc
@@ -86,7 +86,7 @@ The Azure Storage Blob Service component supports 27 options, 
which are listed b
 | *maxResultsPerPage* (common) | Specifies the maximum number of blobs to 
return, including all BlobPrefix elements. If the request does not specify 
maxResultsPerPage or specifies a value greater than 5,000, the server will 
return up to 5,000 items. |  | Integer
 | *maxRetryRequests* (common) | Specifies the maximum number of additional 
HTTP Get requests that will be made while reading the data from a response 
body. | 0 | int
 | *prefix* (common) | Filters the results to return only blobs whose names 
begin with the specified prefix. May be null to return all blobs. |  | String
-| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through getBlobContainerClient(String), and operations on a 
blob are available on B [...]
+| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through BlobServiceClient#getBlobContainerClient(String), 
and operations on a blob  [...]
 | *timeout* (common) | An optional timeout value beyond which a 
RuntimeException will be raised. |  | Duration
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *blobSequenceNumber* (producer) | A user-controlled value that you can use 
to track requests. The value of the sequence number must be between 0 and 263 - 
1.The default value is 0. | 0 | Long
@@ -142,7 +142,7 @@ with the following path and query parameters:
 | *maxResultsPerPage* (common) | Specifies the maximum number of blobs to 
return, including all BlobPrefix elements. If the request does not specify 
maxResultsPerPage or specifies a value greater than 5,000, the server will 
return up to 5,000 items. |  | Integer
 | *maxRetryRequests* (common) | Specifies the maximum number of additional 
HTTP Get requests that will be made while reading the data from a response 
body. | 0 | int
 | *prefix* (common) | Filters the results to return only blobs whose names 
begin with the specified prefix. May be null to return all blobs. |  | String
-| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through getBlobContainerClient(String), and operations on a 
blob are available on B [...]
+| *serviceClient* (common) | Client to a storage account. This client does not 
hold any state about a particular storage account but is instead a convenient 
way of sending off appropriate requests to the resource on the service. It may 
also be used to construct URLs to blobs and containers. This client contains 
operations on a service account. Operations on a container are available on 
BlobContainerClient through BlobServiceClient#getBlobContainerClient(String), 
and operations on a blob  [...]
 | *timeout* (common) | An optional timeout value beyond which a 
RuntimeException will be raised. |  | Duration
 | *bridgeErrorHandler* (consumer) | Allows for bridging the consumer to the 
Camel routing Error Handler, which mean any exceptions occurred while the 
consumer is trying to pickup incoming messages, or the likes, will now be 
processed as a message and handled by the routing Error Handler. By default the 
consumer will use the org.apache.camel.spi.ExceptionHandler to deal with 
exceptions, that will be logged at WARN or ERROR level and ignored. | false | 
boolean
 | *exceptionHandler* (consumer) | To let the consumer use a custom 
ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this 
option is not in use. By default the consumer will deal with exceptions, that 
will be logged at WARN or ERROR level and ignored. |  | ExceptionHandler

Reply via email to