public class CloudFileServiceFastDFSImpl extends Object implements org.noear.solon.cloud.service.CloudFileService
| 构造器和说明 |
|---|
CloudFileServiceFastDFSImpl(org.noear.solon.core.AppContext appContext,
org.noear.solon.cloud.CloudProps cloudProps) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.noear.solon.core.handle.Result<Object> |
delete(String bucket,
String key) |
boolean |
exists(String bucket,
String key) |
org.noear.solon.cloud.model.Media |
get(String bucket,
String key) |
org.csource.fastdfs.StorageClient |
getClient()
获取真实客户端
|
String |
getTempUrl(String bucket,
String key,
Date expiration) |
org.noear.solon.core.handle.Result<Object> |
put(String bucket,
String key,
org.noear.solon.cloud.model.Media media) |
public CloudFileServiceFastDFSImpl(org.noear.solon.core.AppContext appContext,
org.noear.solon.cloud.CloudProps cloudProps)
public org.csource.fastdfs.StorageClient 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<Object> 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 © 2024. All rights reserved.