类 HttpclientMultipartFileBody
java.lang.Object
org.apache.http.entity.mime.content.AbstractContentBody
org.apache.http.entity.mime.content.FileBody
com.dtflys.forest.backend.httpclient.body.HttpclientMultipartFileBody
- 所有已实现的接口:
org.apache.http.entity.mime.content.ContentBody,org.apache.http.entity.mime.content.ContentDescriptor
public class HttpclientMultipartFileBody
extends org.apache.http.entity.mime.content.FileBody
HttpClient后端的的对于文件类型的MultipartBody封装,主要用于文件上传以及上传时的进度监听
- 从以下版本开始:
- 2020-08-02
- 作者:
- gongjun[jun.gong@thebeastshop.com]
-
构造器概要
构造器构造器说明HttpclientMultipartFileBody(ForestRequest request, File file, org.apache.http.entity.ContentType contentType, String filename, LifeCycleHandler handler) -
方法概要
从类继承的方法 org.apache.http.entity.mime.content.FileBody
getContentLength, getFile, getFilename, getInputStream, getTransferEncoding从类继承的方法 org.apache.http.entity.mime.content.AbstractContentBody
getCharset, getContentType, getMediaType, getMimeType, getSubType
-
构造器详细资料
-
HttpclientMultipartFileBody
public HttpclientMultipartFileBody(ForestRequest request, File file, org.apache.http.entity.ContentType contentType, String filename, LifeCycleHandler handler)
-
-
方法详细资料
-
writeTo
- 指定者:
writeTo在接口中org.apache.http.entity.mime.content.ContentBody- 覆盖:
writeTo在类中org.apache.http.entity.mime.content.FileBody- 抛出:
IOException
-