|
||||||||||
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. |
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 void writeRequest(OutputStream out) throws IOException
RequestEntity
writeRequest
in interface RequestEntity
IOException
public long getContentLength()
RequestEntity
getContentLength
in interface RequestEntity
public String getContentType()
RequestEntity
getContentType
in interface RequestEntity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |