类 FileClientImpl
java.lang.Object
org.opoo.ootp.client.impl.FileClientImpl
- 所有已实现的接口:
FileClient
-
字段概要
字段从接口继承的字段 org.opoo.ootp.client.FileClient
DEFAULT_BUFFER_SIZE, STORAGE_DEFAULT, STORAGE_FS -
构造器概要
构造器构造器说明FileClientImpl(URI endpoint, org.apache.http.impl.client.CloseableHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper) FileClientImpl(URI endpoint, org.apache.http.impl.client.CloseableHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String basePath, String openApiContextPath) -
方法概要
修饰符和类型方法说明voidcopy(String fileId, OutputStream outputStream) 复制到本地输出。void复制到本地文件。voidcopy(URI uri, OutputStream outputStream) voidgetCodec()获取文件及附加信息。protected <T> T下载文件。获取 URI 对应的文件的输入流,如果远程文件是解密的,这里是解密后的输入流。获取 URI 对应的文件的文件信息,如果远程文件是解密的,这里是解密后的文件信息。protected <T> Tput(ExsMessage message, String storage, String pathInfo) 上传文件。void从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.opoo.ootp.client.FileClient
copy, copy, upload, upload, upload, upload, upload, upload, upload, upload, upload, upload, uploadToCustomStorage, uploadToCustomStorage, uploadToCustomStorage, uploadToCustomStorage, uploadToDefaultStorage, uploadToDefaultStorage, uploadToDefaultStorage, uploadToDefaultStorage, uploadToFsStorage, uploadToFsStorage, uploadToFsStorage, uploadToFsStorage
-
字段详细资料
-
构造器详细资料
-
FileClientImpl
-
FileClientImpl
public FileClientImpl(URI endpoint, org.apache.http.impl.client.CloseableHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
方法详细资料
-
getCodec
-
setCodec
-
put
public FileInfo put(ExsMessage message, String storage, String pathInfo) throws IOException, OotpException 从接口复制的说明:FileClient上传文件。向机构外联数据传输平台发送文件。- 指定者:
put在接口中FileClient- 参数:
message- 文件消息storage- 存储器名称pathInfo- 后置处理路径- 返回:
- 上传后生成的文件ID等信息
- 抛出:
IOException- 文件处理异常OotpException- 通常是 Http 请求异常,或者服务器返回错误消息
-
getFile
protected <T> T getFile(String fileId, org.opoo.ootp.client.impl.FileClientImpl.ResponseHandler<T> responseHandler) throws IOException - 抛出:
IOException
-
getFile
从接口复制的说明:FileClient获取文件及附加信息。- 指定者:
getFile在接口中FileClient- 参数:
fileId- 文件ID- 返回:
- 文件及附加信息
- 抛出:
IOException- 文件处理异常
-
getStream
从接口复制的说明:FileClient下载文件。仅上传到默认中转服务的文件可以下载。- 指定者:
getStream在接口中FileClient- 参数:
fileId- 文件ID- 返回:
- 文件流
- 抛出:
IOException- 文件处理异常
-
copy
从接口复制的说明:FileClient复制到本地文件。仅上传到默认中转服务的文件可以复制。- 指定者:
copy在接口中FileClient- 参数:
fileId- 文件IDdestination- 本地文件- 抛出:
IOException- io 异常
-
copy
从接口复制的说明:FileClient复制到本地输出。仅上传到默认中转服务的文件可以复制。- 指定者:
copy在接口中FileClient- 参数:
fileId- 文件IDoutputStream- 输出流- 抛出:
IOException- io 异常
-
getUri
protected <T> T getUri(URI uri, org.opoo.ootp.client.impl.FileClientImpl.ResponseHandler<T> responseHandler) throws IOException - 抛出:
IOException
-
getUri
从接口复制的说明:FileClient获取 URI 对应的文件的文件信息,如果远程文件是解密的,这里是解密后的文件信息。- 指定者:
getUri在接口中FileClient- 参数:
uri- 远程文件资源地址。一般是预签名的S3对象的URI地址。- 返回:
- 解密/解码后的输入流
- 抛出:
IOException- io 异常
-
getStream
从接口复制的说明:FileClient获取 URI 对应的文件的输入流,如果远程文件是解密的,这里是解密后的输入流。- 指定者:
getStream在接口中FileClient- 参数:
uri- 远程文件资源地址。一般是预签名的S3对象的URI地址。- 返回:
- 解密/解码后的输入流
- 抛出:
IOException- io 异常
-
copy
- 指定者:
copy在接口中FileClient- 抛出:
IOException
-
copy
- 指定者:
copy在接口中FileClient- 抛出:
IOException
-