public class FileClient extends AbstractClient
| 限定符和类型 | 方法和说明 |
|---|---|
com.bimface.file.bean.AppendFileBean |
appendUpload(@NotNull Long appendFileId,
Long position,
okhttp3.RequestBody requestBody,
@NotNull String accessToken) |
com.bimface.file.bean.AppendFileBean |
createAppendFile(@NotNull String fileName,
String sourceId,
@NotNull Long fileLength,
@NotNull String accessToken) |
void |
deleteFile(@NotNull Long fileId,
@NotNull String accessToken) |
com.bimface.file.bean.AppendFileBean |
getAppendFile(@NotNull Long appendFileId,
@NotNull String accessToken) |
com.bimface.file.bean.FileBean |
getFile(@NotNull Long fileId,
@NotNull String accessToken) |
static FileClient |
getFileClient(String fileBaseUrl) |
static FileClient |
getFileClient(String fileBaseUrl,
Config config) |
String |
getFileDownloadUrl(@NotNull Long fileId,
String fileName,
@NotNull String accessToken) |
com.bimface.file.bean.FileBean |
getFileMetaData(@NotNull Long fileId,
@NotNull String accessToken) |
List<com.bimface.file.bean.FileBean> |
getFiles(String suffix,
String status,
String startTime,
String endTime,
Long offset,
Long rows,
@NotNull String accessToken) |
com.bimface.file.bean.FileUploadStatusBean |
getFileUploadStatus(@NotNull Long fileId,
@NotNull String accessToken) |
com.bimface.file.bean.SupportFileBean |
getSupportFileTypes(@NotNull String accessToken) |
com.bimface.file.bean.UploadPolicyBean |
getUploadPolicy(@NotNull String fileName,
String sourceId,
@NotNull String accessToken) |
com.bimface.file.bean.FileBean |
uploadByPolicy(@NotNull String url,
@NotNull okhttp3.RequestBody requestBody) |
com.bimface.file.bean.FileBean |
uploadFileByUrl(@NotNull String fileName,
String sourceId,
@NotNull String url,
String etag,
@NotNull String accessToken) |
com.bimface.file.bean.FileBean |
uploadFileFromOSS(@NotNull String fileName,
String sourceId,
@NotNull String ossBucket,
@NotNull String ossObjectKey,
@NotNull String accessToken) |
com.bimface.file.bean.FileBean |
uploadFileStream(@NotNull String fileName,
String sourceId,
@NotNull Long fileLength,
InputStream inputStream,
@NotNull String accessToken) |
execute, executeCall, generateBasicOAuth, validTokenpublic static FileClient getFileClient(String fileBaseUrl)
public static FileClient getFileClient(String fileBaseUrl, Config config)
public com.bimface.file.bean.FileBean uploadFileStream(@NotNull
@NotNull String fileName,
String sourceId,
@NotNull
@NotNull Long fileLength,
InputStream inputStream,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.FileBean uploadFileByUrl(@NotNull
@NotNull String fileName,
String sourceId,
@NotNull
@NotNull String url,
String etag,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.FileBean uploadFileFromOSS(@NotNull
@NotNull String fileName,
String sourceId,
@NotNull
@NotNull String ossBucket,
@NotNull
@NotNull String ossObjectKey,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.UploadPolicyBean getUploadPolicy(@NotNull
@NotNull String fileName,
String sourceId,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.SupportFileBean getSupportFileTypes(@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic void deleteFile(@NotNull
@NotNull Long fileId,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.AppendFileBean createAppendFile(@NotNull
@NotNull String fileName,
String sourceId,
@NotNull
@NotNull Long fileLength,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.AppendFileBean getAppendFile(@NotNull
@NotNull Long appendFileId,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.AppendFileBean appendUpload(@NotNull
@NotNull Long appendFileId,
Long position,
okhttp3.RequestBody requestBody,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.FileBean getFileMetaData(@NotNull
@NotNull Long fileId,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.FileBean getFile(@NotNull
@NotNull Long fileId,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic List<com.bimface.file.bean.FileBean> getFiles(String suffix, String status, String startTime, String endTime, Long offset, Long rows, @NotNull @NotNull String accessToken) throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.FileUploadStatusBean getFileUploadStatus(@NotNull
@NotNull Long fileId,
@NotNull
@NotNull String accessToken)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic String getFileDownloadUrl(@NotNull @NotNull Long fileId, String fileName, @NotNull @NotNull String accessToken) throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic com.bimface.file.bean.FileBean uploadByPolicy(@NotNull
@NotNull String url,
@NotNull
@NotNull okhttp3.RequestBody requestBody)
throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionCopyright © 2024. All rights reserved.