Package org.apache.camel.component.minio
Class MinioConfiguration
java.lang.Object
org.apache.camel.component.minio.MinioConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
okhttp3.OkHttpClient
long
int
int
io.minio.MinioClient
long
io.minio.ServerSideEncryption
io.minio.ServerSideEncryptionCustomerKey
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSecure()
boolean
void
setAccessKey
(String accessKey) Amazon AWS Secret Access Key or Minio Access Key.void
setAutoCloseBody
(boolean autoCloseBody) If this option is true and includeBody is true, then the MinioObject.close() method will be called on exchange completion.void
setAutoCreateBucket
(boolean autoCreateBucket) Setting the autocreation of the bucket if bucket name not exist.void
setBucketName
(String bucketName) Name of the bucket.void
setBypassGovernanceMode
(boolean bypassGovernanceMode) Set this flag if you want to bypassGovernanceMode when deleting a particular object.void
setCustomHttpClient
(okhttp3.OkHttpClient customHttpClient) Set custom HTTP client for authenticated access.void
setDeleteAfterRead
(boolean deleteAfterRead) Delete objects from Minio after they have been retrieved.void
setDeleteAfterWrite
(boolean deleteAfterWrite) Delete file object after the Minio file has been uploaded.void
setDelimiter
(String delimiter) The delimiter which is used in the ListObjectsRequest to only consume objects we are interested in.void
setDestinationBucketName
(String destinationBucketName) Destination bucket name.void
setDestinationObjectName
(String destinationObjectName) Destination object name.void
setEndpoint
(String endpoint) Endpoint can be an URL, domain name, IPv4 address or IPv6 address.void
setIncludeBody
(boolean includeBody) If it is true, the exchange body will be set to a stream to the contents of the file.void
setIncludeFolders
(boolean includeFolders) The flag which is used in the ListObjectsRequest to set include folders.void
setIncludeUserMetadata
(boolean includeUserMetadata) The flag which is used in the ListObjectsRequest to get objects with user meta data.void
setIncludeVersions
(boolean includeVersions) The flag which is used in the ListObjectsRequest to get objects with versioning.void
setKeyName
(String keyName) Setting the key name for an element in the bucket through endpoint parameter.void
setLength
(long length) Number of bytes of object data from offset.void
setMatchETag
(String matchETag) Set match ETag parameter for get object(s).void
setMaxConnections
(int maxConnections) Set the maxConnections parameter in the minio client configurationvoid
setMaxMessagesPerPoll
(int maxMessagesPerPoll) Gets the maximum number of messages as a limit to poll at each polling.void
setMinioClient
(io.minio.MinioClient minioClient) Reference to a Minio Client object in the registry.void
setModifiedSince
(ZonedDateTime modifiedSince) Set modified since parameter for get object(s).void
setMoveAfterRead
(boolean moveAfterRead) Move objects from bucket to a different bucket after they have been retrieved.void
setNotMatchETag
(String notMatchETag) Set not match ETag parameter for get object(s).void
setObjectLock
(boolean objectLock) Set when creating new bucket.void
setObjectName
(String objectName) To get the object from the bucket with the given object name.void
setOffset
(long offset) Start byte position of object data.void
setOperation
(MinioOperations operation) The operation to do in case the user don't want to do only an upload.void
setPojoRequest
(boolean pojoRequest) If we want to use a POJO request as body or not.void
The policy for this queue to set in the method.void
Object name starts with prefix.void
setProxyPort
(Integer proxyPort) TCP/IP port number.void
setRecursive
(boolean recursive) List recursively than directory structure emulation.void
The region in which Minio client needs to work.void
setSecretKey
(String secretKey) Amazon AWS Access Key Id or Minio Secret Key.void
setSecure
(boolean secure) Flag to indicate to use secure connection to minio service or not.void
setServerSideEncryption
(io.minio.ServerSideEncryption serverSideEncryption) Server-side encryption.void
setServerSideEncryptionCustomerKey
(io.minio.ServerSideEncryptionCustomerKey serverSideEncryptionCustomerKey) Server-side encryption for source object while copy/move objects.void
setStartAfter
(String startAfter) list objects in bucket after this object name.void
setStorageClass
(String storageClass) The storage class to set in the request.void
setUnModifiedSince
(ZonedDateTime unModifiedSince) Set un modified since parameter for get object(s).void
setUseVersion1
(boolean useVersion1) when true, version 1 of REST API is used.void
setVersionId
(String versionId) Set specific version_ID of a object when deleting the object.
-
Constructor Details
-
MinioConfiguration
public MinioConfiguration()
-
-
Method Details
-
getEndpoint
-
setEndpoint
Endpoint can be an URL, domain name, IPv4 address or IPv6 address. -
getProxyPort
-
setProxyPort
TCP/IP port number. 80 and 443 are used as defaults for HTTP and HTTPS. -
isSecure
public boolean isSecure() -
setSecure
public void setSecure(boolean secure) Flag to indicate to use secure connection to minio service or not. -
getRegion
-
setRegion
The region in which Minio client needs to work. When using this parameter, the configuration will expect the lowercase name of the region (for example ap-east-1). You'll need to use the name Region.EU_WEST_1.id() -
getCustomHttpClient
public okhttp3.OkHttpClient getCustomHttpClient() -
setCustomHttpClient
public void setCustomHttpClient(okhttp3.OkHttpClient customHttpClient) Set custom HTTP client for authenticated access. -
getAccessKey
-
setAccessKey
Amazon AWS Secret Access Key or Minio Access Key. If not set camel will connect to service for anonymous access. -
getSecretKey
-
setSecretKey
Amazon AWS Access Key Id or Minio Secret Key. If not set camel will connect to service for anonymous access. -
getBucketName
-
setBucketName
Name of the bucket. The bucket will be created if it doesn't already exists. -
isAutoCreateBucket
public boolean isAutoCreateBucket() -
setAutoCreateBucket
public void setAutoCreateBucket(boolean autoCreateBucket) Setting the autocreation of the bucket if bucket name not exist. -
isObjectLock
public boolean isObjectLock() -
setObjectLock
public void setObjectLock(boolean objectLock) Set when creating new bucket. -
getPolicy
-
setPolicy
The policy for this queue to set in the method. -
getServerSideEncryptionCustomerKey
public io.minio.ServerSideEncryptionCustomerKey getServerSideEncryptionCustomerKey() -
setServerSideEncryptionCustomerKey
public void setServerSideEncryptionCustomerKey(io.minio.ServerSideEncryptionCustomerKey serverSideEncryptionCustomerKey) Server-side encryption for source object while copy/move objects. -
getServerSideEncryption
public io.minio.ServerSideEncryption getServerSideEncryption() -
setServerSideEncryption
public void setServerSideEncryption(io.minio.ServerSideEncryption serverSideEncryption) Server-side encryption. -
getMinioClient
public io.minio.MinioClient getMinioClient() -
setMinioClient
public void setMinioClient(io.minio.MinioClient minioClient) Reference to a Minio Client object in the registry. -
getMaxMessagesPerPoll
public int getMaxMessagesPerPoll() -
setMaxMessagesPerPoll
public void setMaxMessagesPerPoll(int maxMessagesPerPoll) Gets the maximum number of messages as a limit to poll at each polling. Gets the maximum number of messages as a limit to poll at each polling. The default value is 10. Use 0 or a negative number to set it as unlimited. -
getMaxConnections
public int getMaxConnections() -
setMaxConnections
public void setMaxConnections(int maxConnections) Set the maxConnections parameter in the minio client configuration -
getObjectName
-
setObjectName
To get the object from the bucket with the given object name. -
getDelimiter
-
setDelimiter
The delimiter which is used in the ListObjectsRequest to only consume objects we are interested in. -
isIncludeUserMetadata
public boolean isIncludeUserMetadata() -
setIncludeUserMetadata
public void setIncludeUserMetadata(boolean includeUserMetadata) The flag which is used in the ListObjectsRequest to get objects with user meta data. -
isIncludeVersions
public boolean isIncludeVersions() -
setIncludeVersions
public void setIncludeVersions(boolean includeVersions) The flag which is used in the ListObjectsRequest to get objects with versioning. -
isIncludeFolders
public boolean isIncludeFolders() -
setIncludeFolders
public void setIncludeFolders(boolean includeFolders) The flag which is used in the ListObjectsRequest to set include folders. -
getPrefix
-
setPrefix
Object name starts with prefix. -
isRecursive
public boolean isRecursive() -
setRecursive
public void setRecursive(boolean recursive) List recursively than directory structure emulation. -
getStartAfter
-
setStartAfter
list objects in bucket after this object name. -
isUseVersion1
public boolean isUseVersion1() -
setUseVersion1
public void setUseVersion1(boolean useVersion1) when true, version 1 of REST API is used. -
getOffset
public long getOffset() -
setOffset
public void setOffset(long offset) Start byte position of object data. -
getLength
public long getLength() -
setLength
public void setLength(long length) Number of bytes of object data from offset. -
getVersionId
-
setVersionId
Set specific version_ID of a object when deleting the object. -
getMatchETag
-
setMatchETag
Set match ETag parameter for get object(s). -
getNotMatchETag
-
setNotMatchETag
Set not match ETag parameter for get object(s). -
getModifiedSince
-
setModifiedSince
Set modified since parameter for get object(s). -
getUnModifiedSince
-
setUnModifiedSince
Set un modified since parameter for get object(s). -
getDestinationBucketName
-
setDestinationBucketName
Destination bucket name. -
getDestinationObjectName
-
setDestinationObjectName
Destination object name. -
isDeleteAfterRead
public boolean isDeleteAfterRead() -
setDeleteAfterRead
public void setDeleteAfterRead(boolean deleteAfterRead) Delete objects from Minio after they have been retrieved. The delete is only performed if the Exchange is committed. If a rollback occurs, the object is not deleted. If this option is false, then the same objects will be retrieve over and over again on the polls. Therefore you need to use the Idempotent Consumer EIP in the route to filter out duplicates. You can filter using theMinioConstants.BUCKET_NAME
andMinioConstants.OBJECT_NAME
headers, or only theMinioConstants.OBJECT_NAME
header. -
isMoveAfterRead
public boolean isMoveAfterRead() -
setMoveAfterRead
public void setMoveAfterRead(boolean moveAfterRead) Move objects from bucket to a different bucket after they have been retrieved. To accomplish the operation the destinationBucket option must be set. The copy bucket operation is only performed if the Exchange is committed. If a rollback occurs, the object is not moved. -
isBypassGovernanceMode
public boolean isBypassGovernanceMode() -
setBypassGovernanceMode
public void setBypassGovernanceMode(boolean bypassGovernanceMode) Set this flag if you want to bypassGovernanceMode when deleting a particular object. -
isIncludeBody
public boolean isIncludeBody() -
setIncludeBody
public void setIncludeBody(boolean includeBody) If it is true, the exchange body will be set to a stream to the contents of the file. If false, the headers will be set with the Minio object metadata, but the body will be null. This option is strongly related to autocloseBody option. In case of setting includeBody to true and autocloseBody to false, it will be up to the caller to close the MinioObject stream. Setting autocloseBody to true, will close the MinioObject stream automatically. -
isAutoCloseBody
public boolean isAutoCloseBody() -
setAutoCloseBody
public void setAutoCloseBody(boolean autoCloseBody) If this option is true and includeBody is true, then the MinioObject.close() method will be called on exchange completion. This option is strongly related to includeBody option. In case of setting includeBody to true and autocloseBody to false, it will be up to the caller to close the MinioObject stream. Setting autocloseBody to true, will close the MinioObject stream automatically. -
getKeyName
-
setKeyName
Setting the key name for an element in the bucket through endpoint parameter. -
isDeleteAfterWrite
public boolean isDeleteAfterWrite() -
setDeleteAfterWrite
public void setDeleteAfterWrite(boolean deleteAfterWrite) Delete file object after the Minio file has been uploaded. -
getStorageClass
-
setStorageClass
The storage class to set in the request. -
getOperation
-
setOperation
The operation to do in case the user don't want to do only an upload. -
isPojoRequest
public boolean isPojoRequest() -
setPojoRequest
public void setPojoRequest(boolean pojoRequest) If we want to use a POJO request as body or not. -
copy
-