Top Description Fields Constructors Methods
org.apache.hc.client5.http.entity.mime

pack-priv Class LegacyMultipart

extends AbstractMultipartFormat
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.nio.charset.Charset, java.util.List

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

Modifier and TypeField and Description
private final List<MultipartPart>
Inherited from org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat:
boundarycharsetCR_LFFIELD_SEPTWO_HYPHENS

Constructor Summary

AccessConstructor and Description
public
LegacyMultipart(final Charset charset, final String boundary, final List<MultipartPart> parts)

Method Summary

Modifier and TypeMethod and Description
protected void
formatMultipartHeader(final MultipartPart part, final OutputStream out)

Implements abstract org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat.formatMultipartHeader.

Write the multipart header fields; depends on the style.
public List<MultipartPart>
Inherited from org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat:
doWriteToencodegetTotalLengthisLineBreakstripLineBreakswriteByteswriteByteswriteByteswriteFieldwriteFieldwriteTo

Field Detail

partsback to summary
private final List<MultipartPart> parts

Constructor Detail

LegacyMultipartback to summary
public LegacyMultipart(final Charset charset, final String boundary, final List<MultipartPart> parts)

Method Detail

formatMultipartHeaderback to summary
protected void formatMultipartHeader(final MultipartPart part, final OutputStream out) throws IOException

Implements abstract org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat.formatMultipartHeader.

Write the multipart header fields; depends on the style.

Annotations
@Override
getPartsback to summary
public List<MultipartPart> getParts()

Implements abstract org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat.getParts.

Annotations
@Override