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.OkHttpClientlongintintio.minio.MinioClientlongio.minio.ServerSideEncryptionio.minio.ServerSideEncryptionCustomerKeybooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisSecure()booleanvoidsetAccessKey(String accessKey) Amazon AWS Secret Access Key or Minio Access Key.voidsetAutoCloseBody(boolean autoCloseBody) If this option is true and includeBody is true, then the MinioObject.close() method will be called on exchange completion.voidsetAutoCreateBucket(boolean autoCreateBucket) Setting the autocreation of the bucket if bucket name not exist.voidsetBucketName(String bucketName) Name of the bucket.voidsetBypassGovernanceMode(boolean bypassGovernanceMode) Set this flag if you want to bypassGovernanceMode when deleting a particular object.voidsetCustomHttpClient(okhttp3.OkHttpClient customHttpClient) Set custom HTTP client for authenticated access.voidsetDeleteAfterRead(boolean deleteAfterRead) Delete objects from Minio after they have been retrieved.voidsetDeleteAfterWrite(boolean deleteAfterWrite) Delete file object after the Minio file has been uploaded.voidsetDelimiter(String delimiter) The delimiter which is used in the ListObjectsRequest to only consume objects we are interested in.voidsetDestinationBucketName(String destinationBucketName) Destination bucket name.voidsetDestinationObjectName(String destinationObjectName) Destination object name.voidsetEndpoint(String endpoint) Endpoint can be an URL, domain name, IPv4 address or IPv6 address.voidsetIncludeBody(boolean includeBody) If it is true, the exchange body will be set to a stream to the contents of the file.voidsetIncludeFolders(boolean includeFolders) The flag which is used in the ListObjectsRequest to set include folders.voidsetIncludeUserMetadata(boolean includeUserMetadata) The flag which is used in the ListObjectsRequest to get objects with user meta data.voidsetIncludeVersions(boolean includeVersions) The flag which is used in the ListObjectsRequest to get objects with versioning.voidsetKeyName(String keyName) Setting the key name for an element in the bucket through endpoint parameter.voidsetLength(long length) Number of bytes of object data from offset.voidsetMatchETag(String matchETag) Set match ETag parameter for get object(s).voidsetMaxConnections(int maxConnections) Set the maxConnections parameter in the minio client configurationvoidsetMaxMessagesPerPoll(int maxMessagesPerPoll) Gets the maximum number of messages as a limit to poll at each polling.voidsetMinioClient(io.minio.MinioClient minioClient) Reference to a Minio Client object in the registry.voidsetModifiedSince(ZonedDateTime modifiedSince) Set modified since parameter for get object(s).voidsetMoveAfterRead(boolean moveAfterRead) Move objects from bucket to a different bucket after they have been retrieved.voidsetNotMatchETag(String notMatchETag) Set not match ETag parameter for get object(s).voidsetObjectLock(boolean objectLock) Set when creating new bucket.voidsetObjectName(String objectName) To get the object from the bucket with the given object name.voidsetOffset(long offset) Start byte position of object data.voidsetOperation(MinioOperations operation) The operation to do in case the user don't want to do only an upload.voidsetPojoRequest(boolean pojoRequest) If we want to use a POJO request as body or not.voidThe policy for this queue to set in the method.voidObject name starts with prefix.voidsetProxyPort(Integer proxyPort) TCP/IP port number. 80 and 443 are used as defaults for HTTP and HTTPS.voidsetRecursive(boolean recursive) List recursively than directory structure emulation.voidThe region in which Minio client needs to work.voidsetSecretKey(String secretKey) Amazon AWS Access Key Id or Minio Secret Key.voidsetSecure(boolean secure) Flag to indicate to use secure connection to minio service or not.voidsetServerSideEncryption(io.minio.ServerSideEncryption serverSideEncryption) Server-side encryption.voidsetServerSideEncryptionCustomerKey(io.minio.ServerSideEncryptionCustomerKey serverSideEncryptionCustomerKey) Server-side encryption for source object while copy/move objects.voidsetStartAfter(String startAfter) list objects in bucket after this object name.voidsetStorageClass(String storageClass) The storage class to set in the request.voidsetUnModifiedSince(ZonedDateTime unModifiedSince) Set un modified since parameter for get object(s).voidsetUseVersion1(boolean useVersion1) when true, version 1 of REST API is used.voidsetVersionId(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_NAMEandMinioConstants.OBJECT_NAMEheaders, or only theMinioConstants.OBJECT_NAMEheader. -
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
-