public class S3Storage extends Object implements de.iip_ecosphere.platform.deviceMgt.storage.Storage
| Modifier and Type | Field and Description |
|---|---|
private String |
bucket |
private io.minio.MinioClient |
minioClient |
private String |
prefix |
| Constructor and Description |
|---|
S3Storage(String prefix,
io.minio.MinioClient minioClient,
String bucket)
Creates a S3Storage.
|
| Modifier and Type | Method and Description |
|---|---|
String |
generateDownloadUrl(String key) |
String |
getPrefix() |
Set<String> |
list() |
void |
storeFile(String key,
File file) |
private String prefix
private io.minio.MinioClient minioClient
private String bucket
public String getPrefix()
getPrefix in interface de.iip_ecosphere.platform.deviceMgt.storage.Storagepublic Set<String> list()
list in interface de.iip_ecosphere.platform.deviceMgt.storage.Storagepublic String generateDownloadUrl(String key)
generateDownloadUrl in interface de.iip_ecosphere.platform.deviceMgt.storage.Storagepublic void storeFile(String key, File file) throws IOException
storeFile in interface de.iip_ecosphere.platform.deviceMgt.storage.StorageIOExceptionCopyright © 2022. All rights reserved.