Class HttpStrictMultipart
java.lang.Object
org.apache.hc.client5.http.entity.mime.AbstractMultipartFormat
org.apache.hc.client5.http.entity.mime.HttpStrictMultipart
-
Field Summary
FieldsFields inherited from class AbstractMultipartFormat
boundary, charset, CR_LF, FIELD_SEP, TWO_HYPHENS -
Constructor Summary
ConstructorsConstructorDescriptionHttpStrictMultipart(Charset charset, String boundary, List<MultipartPart> parts) Constructs a new instance ofHttpStrictMultipartwith the given charset, boundary, and parts.HttpStrictMultipart(Charset charset, String boundary, List<MultipartPart> parts, String preamble, String epilogue) Constructs a new instance ofHttpStrictMultipartwith the given charset, boundary, parts, preamble, and epilogue. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidformatMultipartHeader(MultipartPart part, OutputStream out) Write the multipart header fields; depends on the style.getParts()Methods inherited from class AbstractMultipartFormat
doWriteTo, encode, getTotalLength, isLineBreak, stripLineBreaks, writeBytes, writeBytes, writeBytes, writeField, writeField, writeTo
-
Field Details
-
parts
-
-
Constructor Details
-
HttpStrictMultipart
Constructs a new instance ofHttpStrictMultipartwith the given charset, boundary, and parts.- Parameters:
charset- the charset to use.boundary- the boundary string to use.parts- the list of parts to include in the multipart message.
-
HttpStrictMultipart
public HttpStrictMultipart(Charset charset, String boundary, List<MultipartPart> parts, String preamble, String epilogue) Constructs a new instance ofHttpStrictMultipartwith the given charset, boundary, parts, preamble, and epilogue.- Parameters:
charset- the charset to use.boundary- the boundary string to use.parts- the list of parts to include in the multipart message.preamble- the preamble string to use.epilogue- the epilogue string to use.
-
-
Method Details
-
getParts
- Specified by:
getPartsin classAbstractMultipartFormat
-
formatMultipartHeader
Description copied from class:AbstractMultipartFormatWrite the multipart header fields; depends on the style.- Specified by:
formatMultipartHeaderin classAbstractMultipartFormat- Throws:
IOException
-