|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ning.http.multipart.MultipartRequestEntity
public class MultipartRequestEntity
This class is an adaptation of the Apache HttpClient implementation
| Field Summary | |
|---|---|
protected Part[] |
parts
The MIME parts as set by the constructor |
| Constructor Summary | |
|---|---|
MultipartRequestEntity(Part[] parts,
FluentCaseInsensitiveStringsMap requestHeaders)
Creates a new multipart entity containing the given parts. |
|
| Method Summary | |
|---|---|
static byte[] |
generateMultipartBoundary()
Generates a random multipart boundary string. |
long |
getContentLength()
Gets the request entity's length. |
String |
getContentType()
Gets the entity's content type. |
protected byte[] |
getMultipartBoundary()
Returns the MIME boundary string that is used to demarcate boundaries of this part. |
boolean |
isRepeatable()
Returns true if all parts are repeatable, false otherwise. |
void |
writeRequest(OutputStream out)
Writes the request entity to the given stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Part[] parts
| Constructor Detail |
|---|
public MultipartRequestEntity(Part[] parts,
FluentCaseInsensitiveStringsMap requestHeaders)
parts - The parts to include.| Method Detail |
|---|
public static byte[] generateMultipartBoundary()
protected byte[] getMultipartBoundary()
public boolean isRepeatable()
true if all parts are repeatable, false otherwise.
isRepeatable in interface RequestEntityOutputStream more than once,
false otherwise.
public void writeRequest(OutputStream out)
throws IOException
RequestEntity
writeRequest in interface RequestEntityIOExceptionpublic long getContentLength()
RequestEntity
getContentLength in interface RequestEntitypublic String getContentType()
RequestEntity
getContentType in interface RequestEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||