Package org.apache.http.entity.mime
Class HttpRFC6532Multipart
- java.lang.Object
-
- org.apache.http.entity.mime.AbstractMultipartForm
-
- org.apache.http.entity.mime.HttpRFC6532Multipart
-
class HttpRFC6532Multipart extends AbstractMultipartForm
HttpRFC6532Multipart represents a collection of MIME multipart encoded content bodies, implementing the strict (RFC 822, RFC 2045, RFC 2046 compliant) interpretation of the spec, with the exception of allowing UTF-8 headers, as per RFC6532.- Since:
- 4.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<FormBodyPart>
parts
-
Fields inherited from class org.apache.http.entity.mime.AbstractMultipartForm
boundary, charset
-
-
Constructor Summary
Constructors Constructor Description HttpRFC6532Multipart(java.nio.charset.Charset charset, java.lang.String boundary, java.util.List<FormBodyPart> parts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
formatMultipartHeader(FormBodyPart part, java.io.OutputStream out)
Write the multipart header fields; depends on the style.java.util.List<FormBodyPart>
getBodyParts()
-
Methods inherited from class org.apache.http.entity.mime.AbstractMultipartForm
doWriteTo, getTotalLength, writeField, writeField, writeTo
-
-
-
-
Field Detail
-
parts
private final java.util.List<FormBodyPart> parts
-
-
Constructor Detail
-
HttpRFC6532Multipart
public HttpRFC6532Multipart(java.nio.charset.Charset charset, java.lang.String boundary, java.util.List<FormBodyPart> parts)
-
-
Method Detail
-
getBodyParts
public java.util.List<FormBodyPart> getBodyParts()
- Specified by:
getBodyParts
in classAbstractMultipartForm
-
formatMultipartHeader
protected void formatMultipartHeader(FormBodyPart part, java.io.OutputStream out) throws java.io.IOException
Description copied from class:AbstractMultipartForm
Write the multipart header fields; depends on the style.- Specified by:
formatMultipartHeader
in classAbstractMultipartForm
- Throws:
java.io.IOException
-
-