Class BlobConfiguration
- java.lang.Object
-
- org.apache.camel.component.azure.storage.blob.BlobConfiguration
-
-
Constructor Summary
Constructors Constructor Description BlobConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlobConfiguration
copy()
String
getAccessKey()
Access key for the associated azure account name to be used for authentication with azure blob servicesString
getAccountName()
Azure account name to be used for authentication with azure blob servicesString
getBlobName()
The blob name, required for consumer.long
getBlobOffset()
Set the blob offset for the upload or download operations, default is 0BlobType
getBlobType()
The blob type in order to initiate the appropriate settings for each blob typeString
getContainerName()
The blob container namecom.azure.storage.common.StorageSharedKeyCredential
getCredentials()
StorageSharedKeyCredential can be injected to create the azure client, this holds the important authentication informationLong
getDataCount()
How many bytes to include in the range.String
getFileDir()
The file directory where the downloaded blobs will be saved to, this can be used in both, producer and consumerint
getMaxRetryRequests()
Specifies the maximum number of additional HTTP Get requests that will be made while reading the data from a response body.BlobOperationsDefinition
getOperation()
The blob operation that can be used with this component on the producercom.azure.storage.blob.BlobServiceClient
getServiceClient()
Client to a storage account.boolean
isCloseStreamAfterRead()
Close the stream after read or keep it open, default is trueboolean
isCloseStreamAfterWrite()
Close the stream after write or keep it open, default is truevoid
setAccessKey(String accessKey)
void
setAccountName(String accountName)
void
setBlobName(String blobName)
void
setBlobOffset(long blobOffset)
void
setBlobType(BlobType blobType)
void
setCloseStreamAfterRead(boolean closeStreamAfterRead)
void
setCloseStreamAfterWrite(boolean closeStreamAfterWrite)
void
setContainerName(String containerName)
void
setCredentials(com.azure.storage.common.StorageSharedKeyCredential credentials)
void
setDataCount(Long dataCount)
void
setFileDir(String fileDir)
void
setMaxRetryRequests(int maxRetryRequests)
void
setOperation(BlobOperationsDefinition operation)
void
setServiceClient(com.azure.storage.blob.BlobServiceClient serviceClient)
-
-
-
Method Detail
-
getAccountName
public String getAccountName()
Azure account name to be used for authentication with azure blob services
-
setAccountName
public void setAccountName(String accountName)
-
getContainerName
public String getContainerName()
The blob container name
-
setContainerName
public void setContainerName(String containerName)
-
getCredentials
public com.azure.storage.common.StorageSharedKeyCredential getCredentials()
StorageSharedKeyCredential can be injected to create the azure client, this holds the important authentication information
-
setCredentials
public void setCredentials(com.azure.storage.common.StorageSharedKeyCredential credentials)
-
getServiceClient
public com.azure.storage.blob.BlobServiceClient getServiceClient()
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 onBlobContainerClient
through#getBlobContainerClient(String)
, and operations on a blob are available onBlobClient
through {@link #getBlobContainerClient(String).getBlobClient(String)}.
-
setServiceClient
public void setServiceClient(com.azure.storage.blob.BlobServiceClient serviceClient)
-
getAccessKey
public String getAccessKey()
Access key for the associated azure account name to be used for authentication with azure blob services
-
setAccessKey
public void setAccessKey(String accessKey)
-
getOperation
public BlobOperationsDefinition getOperation()
The blob operation that can be used with this component on the producer
-
setOperation
public void setOperation(BlobOperationsDefinition operation)
-
getBlobName
public String getBlobName()
The blob name, required for consumer. However on producer, is only required for the operations on the blob level
-
setBlobName
public void setBlobName(String blobName)
-
getBlobType
public BlobType getBlobType()
The blob type in order to initiate the appropriate settings for each blob type
-
setBlobType
public void setBlobType(BlobType blobType)
-
getFileDir
public String getFileDir()
The file directory where the downloaded blobs will be saved to, this can be used in both, producer and consumer
-
setFileDir
public void setFileDir(String fileDir)
-
getBlobOffset
public long getBlobOffset()
Set the blob offset for the upload or download operations, default is 0
-
setBlobOffset
public void setBlobOffset(long blobOffset)
-
getDataCount
public Long getDataCount()
How many bytes to include in the range. Must be greater than or equal to 0 if specified.
-
setDataCount
public void setDataCount(Long dataCount)
-
getMaxRetryRequests
public int getMaxRetryRequests()
Specifies the maximum number of additional HTTP Get requests that will be made while reading the data from a response body.
-
setMaxRetryRequests
public void setMaxRetryRequests(int maxRetryRequests)
-
isCloseStreamAfterRead
public boolean isCloseStreamAfterRead()
Close the stream after read or keep it open, default is true
-
setCloseStreamAfterRead
public void setCloseStreamAfterRead(boolean closeStreamAfterRead)
-
isCloseStreamAfterWrite
public boolean isCloseStreamAfterWrite()
Close the stream after write or keep it open, default is true
-
setCloseStreamAfterWrite
public void setCloseStreamAfterWrite(boolean closeStreamAfterWrite)
-
copy
public BlobConfiguration copy()
-
-