public class S3StorageService extends CloudStorageService
Constructor and Description |
---|
S3StorageService() |
Modifier and Type | Method and Description |
---|---|
com.amazonaws.services.s3.AmazonS3Client |
getClient() |
String |
getSignedUploadUrl(String bucket,
String fileKey,
String contentType,
Map headers) |
void |
uploadFile(File file,
String bucket,
String fileKey,
boolean isPublic) |
void |
uploadFile(File file,
String bucket,
String fileKey,
boolean isPublic,
String contentType,
Map<String,String> headers) |
instance, load, load
public S3StorageService()
public void uploadFile(File file, String bucket, String fileKey, boolean isPublic)
uploadFile
in class CloudStorageService
public void uploadFile(File file, String bucket, String fileKey, boolean isPublic, String contentType, Map<String,String> headers)
uploadFile
in class CloudStorageService
public String getSignedUploadUrl(String bucket, String fileKey, String contentType, Map headers)
getSignedUploadUrl
in class CloudStorageService
public com.amazonaws.services.s3.AmazonS3Client getClient()
Copyright © 2016. All rights reserved.