public class DownloadService extends Object
| 构造器和说明 |
|---|
DownloadService(Endpoint endpoint,
AccessTokenService accessTokenService) |
DownloadService(Endpoint endpoint,
Config config,
AccessTokenService accessTokenService) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDownloadUrl(Long fileId) |
String |
getDownloadUrl(Long fileId,
String fileName)
获取文件下载链接
|
String |
getDownloadUrl(Long fileId,
String fileName,
String accessToken) |
String |
getDownloadUrl(String accessToken,
Long fileId)
获取文件下载链接
|
InputStream |
getFileContent(Long fileId,
String name)
获取文件流
|
InputStream |
getFileContent(Long fileId,
String name,
String accessToken) |
public DownloadService(Endpoint endpoint, AccessTokenService accessTokenService)
public DownloadService(Endpoint endpoint, Config config, AccessTokenService accessTokenService)
public String getDownloadUrl(String accessToken, Long fileId) throws com.bimface.exception.BimfaceException
accessToken - 登录后的授权凭证fileId - 文件Idcom.bimface.exception.BimfaceException - BimfaceExceptionpublic String getDownloadUrl(Long fileId) throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic String getDownloadUrl(Long fileId, String fileName) throws com.bimface.exception.BimfaceException
fileId - 文件IdfileName - 文件名com.bimface.exception.BimfaceException - BimfaceExceptionpublic String getDownloadUrl(Long fileId, String fileName, String accessToken) throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionpublic InputStream getFileContent(Long fileId, String name) throws com.bimface.exception.BimfaceException
fileId - 文件idname - 文件名称com.bimface.exception.BimfaceException - BimfaceExceptionpublic InputStream getFileContent(Long fileId, String name, String accessToken) throws com.bimface.exception.BimfaceException
com.bimface.exception.BimfaceExceptionCopyright © 2024. All rights reserved.