public class CloudFileServiceImpl extends java.lang.Object implements CloudFileService
| 构造器和说明 |
|---|
CloudFileServiceImpl(CloudProps cloudProps) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addBucket(java.lang.String bucketName,
org.noear.solon.core.Props props)
添加 bucket
|
org.noear.solon.core.handle.Result |
delete(java.lang.String bucket,
java.lang.String key)
删除文件
|
org.noear.solon.core.handle.Result |
deleteBatch(java.lang.String bucket,
java.util.Collection<java.lang.String> keys)
批量删除文件
|
boolean |
exists(java.lang.String bucket,
java.lang.String key)
是否存在
|
Media |
get(java.lang.String bucket,
java.lang.String key)
获取文件
|
java.lang.String |
getBucketDef()
获取默认 bucket
|
CloudFileService |
getBucketService(java.lang.String bucket)
获取 bucket service
|
java.lang.String |
getTempUrl(java.lang.String bucket,
java.lang.String key,
java.time.Duration duration)
获取文件临时地址
|
org.noear.solon.core.handle.Result |
put(java.lang.String bucket,
java.lang.String key,
Media media)
推入文件
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, deleteBatch, exists, get, getTempUrl, getTempUrl, getTempUrl, putpublic CloudFileServiceImpl(CloudProps cloudProps)
public java.lang.String getBucketDef()
public void addBucket(java.lang.String bucketName,
org.noear.solon.core.Props props)
public CloudFileService getBucketService(java.lang.String bucket) throws CloudFileException
public boolean exists(java.lang.String bucket,
java.lang.String key)
throws CloudFileException
CloudFileServiceexists 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic java.lang.String getTempUrl(java.lang.String bucket,
java.lang.String key,
java.time.Duration duration)
throws CloudFileException
CloudFileServicegetTempUrl 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic Media get(java.lang.String bucket, java.lang.String key) throws CloudFileException
CloudFileServiceget 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic org.noear.solon.core.handle.Result put(java.lang.String bucket,
java.lang.String key,
Media media)
throws CloudFileException
CloudFileServiceput 在接口中 CloudFileServicebucket - 存储桶key - 存储键media - 媒体CloudFileExceptionpublic org.noear.solon.core.handle.Result delete(java.lang.String bucket,
java.lang.String key)
throws CloudFileException
CloudFileServicedelete 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic org.noear.solon.core.handle.Result deleteBatch(java.lang.String bucket,
java.util.Collection<java.lang.String> keys)
throws CloudFileException
CloudFileServicedeleteBatch 在接口中 CloudFileServicebucket - 存储桶keys - 存储键集合CloudFileException