MultipartEntityBuilder.@Deprecated
public class HttpMultipart
extends java.lang.Object
| Constructor | Description |
|---|---|
HttpMultipart(java.lang.String subType,
java.lang.String boundary) |
Deprecated.
|
HttpMultipart(java.lang.String subType,
java.nio.charset.Charset charset,
java.lang.String boundary) |
Deprecated.
Creates an instance with the specified settings.
|
HttpMultipart(java.lang.String subType,
java.nio.charset.Charset charset,
java.lang.String boundary,
HttpMultipartMode mode) |
Deprecated.
Creates an instance with the specified settings.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addBodyPart(FormBodyPart part) |
Deprecated.
|
protected void |
formatMultipartHeader(FormBodyPart part,
java.io.OutputStream out) |
Deprecated.
Write the multipart header fields; depends on the style.
|
java.util.List<FormBodyPart> |
getBodyParts() |
Deprecated.
|
java.lang.String |
getBoundary() |
Deprecated.
|
java.nio.charset.Charset |
getCharset() |
Deprecated.
|
HttpMultipartMode |
getMode() |
Deprecated.
|
java.lang.String |
getSubType() |
Deprecated.
|
long |
getTotalLength() |
Determines the total length of the multipart content (content length of
individual parts plus that of extra elements required to delimit the parts
from one another).
|
protected static void |
writeField(MinimalField field,
java.io.OutputStream out) |
|
protected static void |
writeField(MinimalField field,
java.nio.charset.Charset charset,
java.io.OutputStream out) |
|
void |
writeTo(java.io.OutputStream out) |
Writes out the content in the multipart/form encoding.
|
public HttpMultipart(java.lang.String subType,
java.nio.charset.Charset charset,
java.lang.String boundary,
HttpMultipartMode mode)
subType - MIME subtype - must not be nullcharset - the character set to use. May be null,
in which case MIME.DEFAULT_CHARSET - i.e. US-ASCII - is used.boundary - to use - must not be nullmode - the mode to usejava.lang.IllegalArgumentException - if charset is null or boundary is nullpublic HttpMultipart(java.lang.String subType,
java.nio.charset.Charset charset,
java.lang.String boundary)
HttpMultipartMode.STRICTsubType - MIME subtype - must not be nullcharset - the character set to use. May be null,
in which case MIME.DEFAULT_CHARSET - i.e. US-ASCII - is used.boundary - to use - must not be nulljava.lang.IllegalArgumentException - if charset is null or boundary is nullpublic HttpMultipart(java.lang.String subType,
java.lang.String boundary)
public HttpMultipartMode getMode()
protected void formatMultipartHeader(FormBodyPart part, java.io.OutputStream out) throws java.io.IOException
java.io.IOExceptionpublic java.util.List<FormBodyPart> getBodyParts()
public void addBodyPart(FormBodyPart part)
public java.lang.String getSubType()
public java.nio.charset.Charset getCharset()
public java.lang.String getBoundary()
protected static void writeField(MinimalField field, java.io.OutputStream out) throws java.io.IOException
java.io.IOExceptionprotected static void writeField(MinimalField field, java.nio.charset.Charset charset, java.io.OutputStream out) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic long getTotalLength()
This method buffers only a small amount of data in order to determine the total length of the entire entity. The content of individual parts is not buffered.
-1
otherwise.