public abstract class AbstractOotpClient extends java.lang.Object implements OotpClient
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
FILE_ID_FIELD |
protected org.springframework.web.client.RestTemplate |
restTemplate |
static java.time.format.DateTimeFormatter |
RFC822 |
static java.lang.String |
RFC822_FORMAT |
STORAGE_DEFAULT, STORAGE_FS| 限定符和类型 | 方法和说明 |
|---|---|
void |
copy(java.lang.String fileId,
java.io.File destination)
复制到本地文件。
|
void |
copy(java.lang.String fileId,
java.io.OutputStream outputStream)
复制到本地输出。
|
void |
copy(java.lang.String fileId,
java.nio.file.Path destination)
复制到本地文件。
|
java.io.InputStream |
download(java.lang.String fileId)
下载文件。
|
protected <T> T |
downloadInternal(java.lang.String fileId,
org.springframework.web.client.ResponseExtractor<T> extractor) |
org.springframework.web.client.RestTemplate |
getRestTemplate() |
java.lang.String |
upload(java.lang.String storage,
java.lang.String to,
java.lang.String contentType,
java.io.InputStream file,
java.lang.String fileName,
long fileSize,
long lastModified,
java.lang.String pathInfo)
上传文件。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExsClient, upload, upload, upload, uploadToCustomStorage, uploadToCustomStorage, uploadToCustomStorage, uploadToCustomStorage, uploadToDefaultStorage, uploadToDefaultStorage, uploadToDefaultStorage, uploadToDefaultStorage, uploadToFsStorage, uploadToFsStorage, uploadToFsStorage, uploadToFsStoragepublic static final java.lang.String RFC822_FORMAT
public static java.time.format.DateTimeFormatter RFC822
public static final java.lang.String FILE_ID_FIELD
protected final org.springframework.web.client.RestTemplate restTemplate
public org.springframework.web.client.RestTemplate getRestTemplate()
public java.lang.String upload(java.lang.String storage,
java.lang.String to,
java.lang.String contentType,
java.io.InputStream file,
java.lang.String fileName,
long fileSize,
long lastModified,
java.lang.String pathInfo)
throws java.io.IOException,
OotpException
OotpClientupload 在接口中 OotpClientstorage - 存储器的名称to - 目标接收方,接收方ID或者文件库IDcontentType - 文件内容类型file - 文件内容fileName - 文件名fileSize - 文件大小,未知大小传 -1lastModified - 文件最后更新时间pathInfo - 文件后置处理路径java.io.IOException - 文件处理异常OotpException - 其它异常protected <T> T downloadInternal(java.lang.String fileId,
org.springframework.web.client.ResponseExtractor<T> extractor)
public java.io.InputStream download(java.lang.String fileId)
OotpClientdownload 在接口中 OotpClientfileId - 文件IDpublic void copy(java.lang.String fileId,
java.io.File destination)
throws java.io.IOException
OotpClientcopy 在接口中 OotpClientfileId - 文件IDdestination - 本地文件java.io.IOException - io 异常public void copy(java.lang.String fileId,
java.nio.file.Path destination)
throws java.io.IOException
OotpClientcopy 在接口中 OotpClientfileId - 文件IDdestination - 本地文件java.io.IOException - io 异常public void copy(java.lang.String fileId,
java.io.OutputStream outputStream)
throws java.io.IOException
OotpClientcopy 在接口中 OotpClientfileId - 文件IDoutputStream - 输出流java.io.IOException - io 异常Copyright © 2021. All rights reserved.