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

pack-priv Class HttpStrictMultipart

extends AbstractMultipartFormat
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.nio.charset.Charset, 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
HttpStrictMultipart(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 HttpStrictMultipart with the given charset, boundary, and parts.

public
HttpStrictMultipart(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
,
final String
the preamble string to use.
preamble
,
final String
the epilogue string to use.
epilogue
)

Constructs a new instance of HttpStrictMultipart with the given charset, boundary, parts, preamble, and epilogue.

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

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

Constructs a new instance of HttpStrictMultipart 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.

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

Constructs a new instance of HttpStrictMultipart with the given charset, boundary, parts, preamble, and epilogue.

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.

preamble:String

the preamble string to use.

epilogue:String

the epilogue string to use.

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