Package org.bremersee.data.minio
Class MinioTemplate
- java.lang.Object
-
- org.bremersee.data.minio.MinioTemplate
-
- All Implemented Interfaces:
Cloneable
,MinioOperations
public class MinioTemplate extends Object implements MinioOperations, Cloneable
The minio template.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description MinioTemplate(io.minio.MinioClient client)
Instantiates a new minio template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MinioTemplate
clone()
MinioTemplate
clone(org.springframework.util.ErrorHandler errorHandler)
Clone minio template.<T> T
execute(MinioClientCallback<T> callback)
Execute minio callback.void
setErrorHandler(org.springframework.util.ErrorHandler errorHandler)
Sets error handler.-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bremersee.data.minio.MinioOperations
bucketExists, composeObject, copyObject, deleteBucketEncryption, deleteBucketLifecycle, deleteBucketNotification, deleteBucketPolicy, deleteBucketReplication, deleteBucketTags, deleteObjectLockConfiguration, deleteObjectTags, disableObjectLegalHold, downloadObject, enableObjectLegalHold, getBucketEncryption, getBucketLifecycle, getBucketNotification, getBucketPolicy, getBucketReplication, getBucketTags, getBucketVersioning, getObject, getObjectLockConfiguration, getObjectRetention, getObjectTags, getPresignedObjectUrl, getPresignedPostFormData, isObjectLegalHoldEnabled, listBuckets, listBuckets, listenBucketNotification, listObjects, makeBucket, objectExists, putObject, removeBucket, removeObject, removeObjects, selectObjectContent, setBucketEncryption, setBucketLifecycle, setBucketNotification, setBucketPolicy, setBucketReplication, setBucketTags, setBucketVersioning, setObjectLockConfiguration, setObjectRetention, setObjectTags, statObject, uploadObject
-
-
-
-
Method Detail
-
setErrorHandler
public void setErrorHandler(org.springframework.util.ErrorHandler errorHandler)
Sets error handler.- Parameters:
errorHandler
- the error handler
-
clone
public MinioTemplate clone()
-
clone
public MinioTemplate clone(org.springframework.util.ErrorHandler errorHandler)
Clone minio template.- Parameters:
errorHandler
- the error handler- Returns:
- the minio template
-
execute
public <T> T execute(MinioClientCallback<T> callback)
Description copied from interface:MinioOperations
Execute minio callback.- Specified by:
execute
in interfaceMinioOperations
- Type Parameters:
T
- the type of the result- Parameters:
callback
- the callback- Returns:
- the result
-
-