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