public interface FileClient
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.http.impl.client.CloseableHttpClient |
allocHttpClient() |
default String |
applyUploadFile() |
String |
applyUploadFiles(org.apache.http.impl.client.CloseableHttpClient httpClient,
int maxUploadFiles) |
String |
applyUploadFiles(int maxUploadFiles) |
void |
deleteFile(String fileId) |
void |
downloadFile(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileId,
String filePath) |
void |
downloadFile(String fileId,
String filePath) |
void |
downloadFileRange(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileId,
int offset,
int lenght,
String filePath) |
void |
downloadFileRange(String fileId,
int offset,
int lenght,
String filePath) |
String |
getAttachFileUrl(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileId,
int expireTime)
附属文件下载url
|
String |
getAttachFileUrl(String fileId,
int expireTime)
附属文件下载url
|
String |
getAttachFileUrlLimitTimes(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileId,
int downloadTime)
附属文件下载url 不限制时间,限制下载次数
|
String |
getAttachFileUrlLimitTimes(String fileId,
int downloadTime)
附属文件下载url 不限制时间,限制下载次数
|
FileInfo |
getFileInfo(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileId) |
FileInfo |
getFileInfo(String fileId) |
FileLibraryInfo |
getFileLibrary(String topUnit,
String libraryId) |
long |
getFileRangeStart(org.apache.http.impl.client.CloseableHttpClient httpClient,
File file) |
long |
getFileRangeStart(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileMd5,
long fileSize) |
long |
getFileRangeStart(File file) |
long |
getFileRangeStart(String fileMd5,
long fileSize) |
long |
getFileSizeByFileId(String fileId) |
long |
getFileSizeByStoreUrl(String fileStoreUrl) |
String |
getFileUrl(org.apache.http.impl.client.CloseableHttpClient httpClient,
FileAccessLog aacessLog) |
String |
getFileUrl(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileId,
int expireTime)
文件下载url
|
String |
getFileUrl(FileAccessLog aacessLog) |
String |
getFileUrl(String fileId,
int expireTime)
文件下载url
|
String |
getFileUrlLimitTimes(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileId,
int downloadTime)
文件下载url 不限制时间,限制下载次数
|
String |
getFileUrlLimitTimes(String fileId,
int downloadTime)
文件下载url 不限制时间,限制下载次数
|
String |
insertFileLibrary(FileLibraryInfo fileLibrary) |
String |
matchFileStoreUrl(FileInfo fi,
long fileSize) |
void |
releaseHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient) |
String |
storeFile(InputStream file) |
boolean |
updateFileInfo(org.apache.http.impl.client.CloseableHttpClient httpClient,
FileInfo fi) |
boolean |
updateFileInfo(FileInfo fi) |
FileInfo |
uploadFile(org.apache.http.impl.client.CloseableHttpClient httpClient,
FileInfo fi,
File file) |
FileInfo |
uploadFile(org.apache.http.impl.client.CloseableHttpClient httpClient,
FileInfo fi,
InputStream inputStream) |
FileInfo |
uploadFile(FileInfo fi,
File file) |
FileInfo |
uploadFile(FileInfo fi,
InputStream inputStream) |
FileInfo |
uploadFileRange(org.apache.http.impl.client.CloseableHttpClient httpClient,
FileInfo fi,
File file,
long rangeStart,
long rangeSize) |
FileInfo |
uploadFileRange(FileInfo fi,
File file,
long rangeStart,
long rangeSize) |
org.apache.http.impl.client.CloseableHttpClient allocHttpClient()
void releaseHttpClient(org.apache.http.impl.client.CloseableHttpClient httpClient)
String getFileUrl(org.apache.http.impl.client.CloseableHttpClient httpClient, FileAccessLog aacessLog) throws IOException
IOExceptionString getFileUrl(FileAccessLog aacessLog) throws IOException
IOExceptionString applyUploadFiles(org.apache.http.impl.client.CloseableHttpClient httpClient, int maxUploadFiles) throws IOException
IOExceptionString applyUploadFiles(int maxUploadFiles) throws IOException
IOExceptiondefault String applyUploadFile() throws IOException
IOExceptionString getFileUrl(String fileId, int expireTime) throws IOException
fileId - 文件IDexpireTime - 失效期限 按照分钟计算IOException - IOExceptionString getAttachFileUrl(String fileId, int expireTime) throws IOException
fileId - 文件IDexpireTime - 失效期限 按照分钟计算IOException - IOExceptionString getFileUrl(org.apache.http.impl.client.CloseableHttpClient httpClient, String fileId, int expireTime) throws IOException
httpClient - CloseableHttpClientfileId - 文件IDexpireTime - 失效期限 按照分钟计算IOException - IOExceptionString getAttachFileUrl(org.apache.http.impl.client.CloseableHttpClient httpClient, String fileId, int expireTime) throws IOException
httpClient - CloseableHttpClientfileId - 文档IDexpireTime - 失效期限 按照分钟计算IOException - IOExceptionString getAttachFileUrlLimitTimes(org.apache.http.impl.client.CloseableHttpClient httpClient, String fileId, int downloadTime) throws IOException
httpClient - CloseableHttpClientfileId - 文档IDdownloadTime - 下载次数IOException - IOExceptionString getFileUrlLimitTimes(org.apache.http.impl.client.CloseableHttpClient httpClient, String fileId, int downloadTime) throws IOException
httpClient - CloseableHttpClientfileId - 文档IDdownloadTime - 下载次数IOException - IOExceptionString getAttachFileUrlLimitTimes(String fileId, int downloadTime) throws IOException
fileId - 文档IDdownloadTime - 下载次数IOException - IOExceptionString getFileUrlLimitTimes(String fileId, int downloadTime) throws IOException
fileId - 文档IDdownloadTime - 下载次数IOException - IOExceptionFileInfo getFileInfo(org.apache.http.impl.client.CloseableHttpClient httpClient, String fileId) throws IOException
IOExceptionboolean updateFileInfo(org.apache.http.impl.client.CloseableHttpClient httpClient,
FileInfo fi)
throws IOException
IOExceptionFileInfo getFileInfo(String fileId) throws IOException
IOExceptionboolean updateFileInfo(FileInfo fi) throws IOException
IOExceptionFileInfo uploadFile(org.apache.http.impl.client.CloseableHttpClient httpClient, FileInfo fi, File file) throws IOException
IOExceptionFileInfo uploadFile(FileInfo fi, File file) throws IOException
IOExceptionFileInfo uploadFile(org.apache.http.impl.client.CloseableHttpClient httpClient, FileInfo fi, InputStream inputStream) throws IOException
IOExceptionFileInfo uploadFile(FileInfo fi, InputStream inputStream) throws IOException
IOExceptionlong getFileRangeStart(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileMd5,
long fileSize)
throws IOException
IOExceptionlong getFileRangeStart(String fileMd5, long fileSize) throws IOException
IOExceptionlong getFileRangeStart(org.apache.http.impl.client.CloseableHttpClient httpClient,
File file)
throws IOException
IOExceptionlong getFileRangeStart(File file) throws IOException
IOExceptionFileInfo uploadFileRange(org.apache.http.impl.client.CloseableHttpClient httpClient, FileInfo fi, File file, long rangeStart, long rangeSize) throws IOException
IOExceptionFileInfo uploadFileRange(FileInfo fi, File file, long rangeStart, long rangeSize) throws IOException
IOExceptionvoid downloadFileRange(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileId,
int offset,
int lenght,
String filePath)
throws IOException
IOExceptionvoid downloadFileRange(String fileId, int offset, int lenght, String filePath) throws IOException
IOExceptionvoid downloadFile(org.apache.http.impl.client.CloseableHttpClient httpClient,
String fileId,
String filePath)
throws IOException
IOExceptionvoid downloadFile(String fileId, String filePath) throws IOException
IOExceptionString storeFile(InputStream file) throws IOException
IOExceptionlong getFileSizeByStoreUrl(String fileStoreUrl)
long getFileSizeByFileId(String fileId)
void deleteFile(String fileId)
String insertFileLibrary(FileLibraryInfo fileLibrary)
FileLibraryInfo getFileLibrary(String topUnit, String libraryId)
Copyright © 2026 Centit Information Technical, co. Inc.. All rights reserved.