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

pack-priv Class HttpRFC6532Multipart

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

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
HttpRFC6532Multipart(final Charset
The charset to use for the message.
charset
,
final String
The boundary string to use for the message.
boundary
,
final List<MultipartPart>
The list of parts that make up the message.
parts
,
final String
The preamble to include at the beginning of the message, or null if none.
preamble
,
final String
The epilogue to include at the end of the message, or null if none.
epilogue
)

Constructs a new instance of HttpRFC6532Multipart.

public
HttpRFC6532Multipart(final Charset
the charset to use.
charset
,
final String
the boundary string to use.
boundary
,
final List<MultipartPart>
the list of parts to include in the multipart message.
parts
)

Constructs a new instance of HttpRFC6532Multipart with the given charset, boundary, and 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

HttpRFC6532Multipartback to summary
public HttpRFC6532Multipart(final Charset charset, final String boundary, final List<MultipartPart> parts, final String preamble, final String epilogue)

Constructs a new instance of HttpRFC6532Multipart.

Parameters
charset:Charset

The charset to use for the message.

boundary:String

The boundary string to use for the message.

parts:List<MultipartPart>

The list of parts that make up the message.

preamble:String

The preamble to include at the beginning of the message, or null if none.

epilogue:String

The epilogue to include at the end of the message, or null if none.

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

Constructs a new instance of HttpRFC6532Multipart with the given charset, boundary, and parts.

Parameters
charset:Charset

the charset to use.

boundary:String

the boundary string to use.

parts:List<MultipartPart>

the list of parts to include in the multipart message.

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.

Doc from 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