|
||||||||||
| 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,
FluentStringsMap methodParams)
Creates a new multipart entity containing the given parts. |
|
| Method Summary | |
|---|---|
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 Part[] parts
| Constructor Detail |
|---|
public MultipartRequestEntity(Part[] parts,
FluentStringsMap methodParams)
parts - The parts to include.methodParams - The params of the HttpMethod using this entity.| Method Detail |
|---|
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 | |||||||||