public class CloudFileServiceOfS3SdkImpl extends java.lang.Object implements CloudFileService
构造器和说明 |
---|
CloudFileServiceOfS3SdkImpl(java.lang.String bucketDef,
com.amazonaws.services.s3.AmazonS3 client) |
CloudFileServiceOfS3SdkImpl(java.lang.String bucketDef,
Props props) |
限定符和类型 | 方法和说明 |
---|---|
Result |
delete(java.lang.String bucket,
java.lang.String key)
删除文件
|
boolean |
exists(java.lang.String bucket,
java.lang.String key)
是否存在
|
Media |
get(java.lang.String bucket,
java.lang.String key)
获取文件
|
com.amazonaws.services.s3.AmazonS3 |
getClient() |
java.lang.String |
getTempUrl(java.lang.String bucket,
java.lang.String key,
java.util.Date expiration)
获取文件临时地址
|
Result |
put(java.lang.String bucket,
java.lang.String key,
Media media)
推入文件
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, exists, get, getTempUrl, put
public CloudFileServiceOfS3SdkImpl(java.lang.String bucketDef, Props props)
public CloudFileServiceOfS3SdkImpl(java.lang.String bucketDef, com.amazonaws.services.s3.AmazonS3 client)
public com.amazonaws.services.s3.AmazonS3 getClient()
public boolean exists(java.lang.String bucket, java.lang.String key) throws CloudFileException
CloudFileService
exists
在接口中 CloudFileService
bucket
- 存储桶key
- 存储键CloudFileException
public java.lang.String getTempUrl(java.lang.String bucket, java.lang.String key, java.util.Date expiration) throws CloudFileException
CloudFileService
getTempUrl
在接口中 CloudFileService
bucket
- 存储桶key
- 存储键CloudFileException
public Media get(java.lang.String bucket, java.lang.String key) throws CloudFileException
CloudFileService
get
在接口中 CloudFileService
bucket
- 存储桶key
- 存储键CloudFileException
public Result put(java.lang.String bucket, java.lang.String key, Media media) throws CloudFileException
CloudFileService
put
在接口中 CloudFileService
bucket
- 存储桶key
- 存储键media
- 媒体CloudFileException
public Result delete(java.lang.String bucket, java.lang.String key) throws CloudFileException
CloudFileService
delete
在接口中 CloudFileService
bucket
- 存储桶key
- 存储键CloudFileException