public class CloudFileServiceOfLocalImpl extends java.lang.Object implements CloudFileService
| 构造器和说明 |
|---|
CloudFileServiceOfLocalImpl(java.lang.String bucketDef,
org.noear.solon.core.Props props) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
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 CloudFileServiceOfLocalImpl(java.lang.String bucketDef,
org.noear.solon.core.Props props)
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