MultipartEntityBuilder.@Deprecated
public class MultipartEntity
extends java.lang.Object
implements org.apache.http.HttpEntity
| Modifier and Type | Field and Description |
|---|---|
private MultipartEntityBuilder |
builder
Deprecated.
|
private MultipartFormEntity |
entity
Deprecated.
|
private static char[] |
MULTIPART_CHARS
Deprecated.
The pool of ASCII chars to be used for generating a multipart boundary.
|
| Constructor and Description |
|---|
MultipartEntity()
Deprecated.
Creates an instance using mode
HttpMultipartMode.STRICT |
MultipartEntity(HttpMultipartMode mode)
Deprecated.
Creates an instance using the specified
HttpMultipartMode mode. |
MultipartEntity(HttpMultipartMode mode,
java.lang.String boundary,
java.nio.charset.Charset charset)
Deprecated.
Creates an instance using the specified parameters
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPart(FormBodyPart bodyPart)
Deprecated.
|
void |
addPart(java.lang.String name,
ContentBody contentBody)
Deprecated.
|
void |
consumeContent()
Deprecated.
|
protected java.lang.String |
generateBoundary()
Deprecated.
|
protected java.lang.String |
generateContentType(java.lang.String boundary,
java.nio.charset.Charset charset)
Deprecated.
|
java.io.InputStream |
getContent()
Deprecated.
|
org.apache.http.Header |
getContentEncoding()
Deprecated.
|
long |
getContentLength()
Deprecated.
|
org.apache.http.Header |
getContentType()
Deprecated.
|
private MultipartFormEntity |
getEntity()
Deprecated.
|
boolean |
isChunked()
Deprecated.
|
boolean |
isRepeatable()
Deprecated.
|
boolean |
isStreaming()
Deprecated.
|
void |
writeTo(java.io.OutputStream outstream)
Deprecated.
|
private static final char[] MULTIPART_CHARS
private final MultipartEntityBuilder builder
private volatile MultipartFormEntity entity
public MultipartEntity(HttpMultipartMode mode, java.lang.String boundary, java.nio.charset.Charset charset)
mode - the mode to use, may be null, in which case HttpMultipartMode.STRICT is usedboundary - the boundary string, may be null, in which case generateBoundary() is invoked to create the stringcharset - the character set to use, may be null, in which case MIME.DEFAULT_CHARSET - i.e. US-ASCII - is used.public MultipartEntity(HttpMultipartMode mode)
HttpMultipartMode mode.
Boundary and charset are set to null.mode - the desired modepublic MultipartEntity()
HttpMultipartMode.STRICTprotected java.lang.String generateContentType(java.lang.String boundary,
java.nio.charset.Charset charset)
protected java.lang.String generateBoundary()
private MultipartFormEntity getEntity()
public void addPart(FormBodyPart bodyPart)
public void addPart(java.lang.String name,
ContentBody contentBody)
public boolean isRepeatable()
isRepeatable in interface org.apache.http.HttpEntitypublic boolean isChunked()
isChunked in interface org.apache.http.HttpEntitypublic boolean isStreaming()
isStreaming in interface org.apache.http.HttpEntitypublic long getContentLength()
getContentLength in interface org.apache.http.HttpEntitypublic org.apache.http.Header getContentType()
getContentType in interface org.apache.http.HttpEntitypublic org.apache.http.Header getContentEncoding()
getContentEncoding in interface org.apache.http.HttpEntitypublic void consumeContent()
throws java.io.IOException,
java.lang.UnsupportedOperationException
consumeContent in interface org.apache.http.HttpEntityjava.io.IOExceptionjava.lang.UnsupportedOperationExceptionpublic java.io.InputStream getContent()
throws java.io.IOException,
java.lang.UnsupportedOperationException
getContent in interface org.apache.http.HttpEntityjava.io.IOExceptionjava.lang.UnsupportedOperationExceptionpublic void writeTo(java.io.OutputStream outstream)
throws java.io.IOException
writeTo in interface org.apache.http.HttpEntityjava.io.IOException