public class CloudFileServiceOfS3SdkImpl extends Object implements org.noear.solon.cloud.service.CloudFileService
| 构造器和说明 |
|---|
CloudFileServiceOfS3SdkImpl(org.noear.solon.cloud.CloudProps cloudProps) |
CloudFileServiceOfS3SdkImpl(String bucketDef,
com.amazonaws.services.s3.AmazonS3 client) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.noear.solon.core.handle.Result |
delete(String bucket,
String key) |
boolean |
exists(String bucket,
String key) |
org.noear.solon.cloud.model.Media |
get(String bucket,
String key) |
com.amazonaws.services.s3.AmazonS3 |
getClient() |
String |
getTempUrl(String bucket,
String key,
Date expiration) |
org.noear.solon.core.handle.Result |
put(String bucket,
String key,
org.noear.solon.cloud.model.Media media) |
public CloudFileServiceOfS3SdkImpl(org.noear.solon.cloud.CloudProps cloudProps)
public CloudFileServiceOfS3SdkImpl(String bucketDef, com.amazonaws.services.s3.AmazonS3 client)
public com.amazonaws.services.s3.AmazonS3 getClient()
public boolean exists(String bucket, String key) throws org.noear.solon.cloud.exception.CloudFileException
exists 在接口中 org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionpublic String getTempUrl(String bucket, String key, Date expiration) throws org.noear.solon.cloud.exception.CloudFileException
getTempUrl 在接口中 org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionpublic org.noear.solon.cloud.model.Media get(String bucket, String key) throws org.noear.solon.cloud.exception.CloudFileException
get 在接口中 org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionpublic org.noear.solon.core.handle.Result put(String bucket, String key, org.noear.solon.cloud.model.Media media) throws org.noear.solon.cloud.exception.CloudFileException
put 在接口中 org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionCopyright © 2023. All rights reserved.