public class FileClient extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
LOG |
| 构造器和说明 |
|---|
FileClient(String masterSecret,
String appKey) |
FileClient(String masterSecret,
String appKey,
cn.jiguang.common.connection.HttpProxy proxy,
cn.jiguang.common.ClientConfig conf) |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.jiguang.common.resp.ResponseWrapper |
deleteFile(String fileId) |
FileModelPage |
queryEffectFiles() |
FileModel |
queryFile(String fileId) |
FileUploadResult |
uploadFile(FileType type,
String filename) |
FileUploadResult |
uploadFile(FileType type,
String filename,
Integer ttl) |
public FileUploadResult uploadFile(FileType type, String filename, Integer ttl) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic FileUploadResult uploadFile(FileType type, String filename) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic FileModelPage queryEffectFiles() throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic FileModel queryFile(String fileId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionpublic cn.jiguang.common.resp.ResponseWrapper deleteFile(String fileId) throws cn.jiguang.common.resp.APIConnectionException, cn.jiguang.common.resp.APIRequestException
cn.jiguang.common.resp.APIConnectionExceptioncn.jiguang.common.resp.APIRequestExceptionCopyright © 2023. All rights reserved.