Class LegacyMultipart
java.lang.Object
org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat
org.apache.hc.client5.http.entity.mime.LegacyMultipart
HttpBrowserCompatibleMultipart represents a collection of MIME multipart encoded
content bodies. This class is emulates browser compatibility, e.g. IE 5 or earlier.
- Since:
- 4.3
-
Field Summary
FieldsFields inherited from class org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat
boundary, charset, CR_LF, FIELD_SEP, TWO_HYPHENS
-
Constructor Summary
ConstructorsConstructorDescriptionLegacyMultipart
(Charset charset, String boundary, List<MultipartPart> parts) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
formatMultipartHeader
(MultipartPart part, OutputStream out) Write the multipart header fields; depends on the style.getParts()
Methods inherited from class org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat
doWriteTo, encode, getTotalLength, isLineBreak, stripLineBreaks, writeBytes, writeBytes, writeBytes, writeField, writeField, writeTo
-
Field Details
-
parts
-
-
Constructor Details
-
LegacyMultipart
-
-
Method Details
-
getParts
- Specified by:
getParts
in classAbstractMultipartFormat
-
formatMultipartHeader
Write the multipart header fields; depends on the style.- Specified by:
formatMultipartHeader
in classAbstractMultipartFormat
- Throws:
IOException
-