阿里云 OSS 集成服务
配置项(application.groovy 或 yml 文件):bropen.framework.resource.attachment.storage.clazz = AliyunOssService.name
bropen.framework.resource.attachment.storage.aliyunoss.endpoint = "xx"
bropen.framework.resource.attachment.storage.aliyunoss.bucketName = "xx"
bropen.framework.resource.attachment.storage.aliyunoss.accessKeyId = "xx"
bropen.framework.resource.attachment.storage.aliyunoss.accessKeySecret = "xx"
| Constructor and description |
|---|
AliyunOssService
() |
| Type | Name and description |
|---|---|
Integer |
delete(List<String> saveNames, List<String> syncIds) |
boolean |
exists(String saveName, String syncId) |
EncodedInputStreamWrapper |
getEncodedInputStream(javax.servlet.http.HttpServletRequest request, String saveName, String syncId) |
java.io.InputStream |
getInputStream(String saveName, String syncId) |
Long |
getLength(String saveName, String syncId, Long length) |
String |
getUrl(String saveName, String syncId, String fileName, Long length, String contentType, Date expiration) |
String |
save(String saveName, java.io.InputStream is, String fileName, Long length, String md5) |
boolean |
shouldKeepLocalCopy(String fileName, Long length) |
| Methods inherited from class | Name |
|---|---|
class AbstractStorageService |
delete, deleteFailed, deleteRetry, exists, getEncodedInputStream, getInputStream, getLength, getUrl, isEnabled, save, setEnabled, shouldKeepLocalCopy, transfer |
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
BROPEN Documentation, 2020-04-21 11:00