类 AlibabaCloudObjectStorage
- java.lang.Object
-
- cn.dustlight.storage.alibaba.oss.AlibabaCloudObjectStorage
-
- 所有已实现的接口:
cn.dustlight.storage.core.RestfulStorage,cn.dustlight.storage.core.Storage,cn.dustlight.storage.core.UrlStorage
public class AlibabaCloudObjectStorage extends Object implements cn.dustlight.storage.core.RestfulStorage
阿里云对象储存器
-
-
构造器概要
构造器 构造器 说明 AlibabaCloudObjectStorage(com.aliyun.oss.OSS oss, String bucket, Integer threadCount)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 cn.dustlight.storage.core.StorableObjectcreate(String key, int permission)StringgenerateGetUrl(String key, Long expiration)StringgeneratePutUrl(String key, int permission, Long expiration)StringgeneratePutUrl(String key, int permission, Long expiration, Map<String,String> headers)StringgenerateRemoveUrl(String key, Long expiration)cn.dustlight.storage.core.StorableObjectget(String key)protected static com.aliyun.oss.model.CannedAccessControlListgetACL(int permission)booleanisExist(String key)cn.dustlight.storage.core.StorableObjectput(String key, cn.dustlight.storage.core.StorableObject source)cn.dustlight.storage.core.StorableObjectput(String key, cn.dustlight.storage.core.StorableObject source, int permission)voidremove(String key)voidsetPermission(String key, int permission)
-
-
-
方法详细资料
-
create
public cn.dustlight.storage.core.StorableObject create(String key, int permission) throws IOException
- 指定者:
create在接口中cn.dustlight.storage.core.Storage- 抛出:
IOException
-
get
public cn.dustlight.storage.core.StorableObject get(String key) throws IOException
- 指定者:
get在接口中cn.dustlight.storage.core.Storage- 抛出:
IOException
-
put
public cn.dustlight.storage.core.StorableObject put(String key, cn.dustlight.storage.core.StorableObject source) throws IOException
- 指定者:
put在接口中cn.dustlight.storage.core.Storage- 抛出:
IOException
-
put
public cn.dustlight.storage.core.StorableObject put(String key, cn.dustlight.storage.core.StorableObject source, int permission) throws IOException
- 指定者:
put在接口中cn.dustlight.storage.core.Storage- 抛出:
IOException
-
remove
public void remove(String key) throws IOException
- 指定者:
remove在接口中cn.dustlight.storage.core.Storage- 抛出:
IOException
-
setPermission
public void setPermission(String key, int permission) throws IOException
- 指定者:
setPermission在接口中cn.dustlight.storage.core.Storage- 抛出:
IOException
-
isExist
public boolean isExist(String key) throws IOException
- 指定者:
isExist在接口中cn.dustlight.storage.core.Storage- 抛出:
IOException
-
generateGetUrl
public String generateGetUrl(String key, Long expiration) throws IOException
- 指定者:
generateGetUrl在接口中cn.dustlight.storage.core.UrlStorage- 抛出:
IOException
-
generatePutUrl
public String generatePutUrl(String key, int permission, Long expiration) throws IOException
- 指定者:
generatePutUrl在接口中cn.dustlight.storage.core.UrlStorage- 抛出:
IOException
-
generateRemoveUrl
public String generateRemoveUrl(String key, Long expiration) throws IOException
- 指定者:
generateRemoveUrl在接口中cn.dustlight.storage.core.UrlStorage- 抛出:
IOException
-
generatePutUrl
public String generatePutUrl(String key, int permission, Long expiration, Map<String,String> headers) throws IOException
- 指定者:
generatePutUrl在接口中cn.dustlight.storage.core.UrlStorage- 抛出:
IOException
-
getACL
protected static com.aliyun.oss.model.CannedAccessControlList getACL(int permission)
-
-