public static class DroidHttpClient.MultipartData
extends java.lang.Object
| Constructor and Description |
|---|
MultipartData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPart(java.lang.String paramName,
java.io.File file)
Add file type parameter.
|
void |
addPart(java.lang.String paramName,
java.lang.String paramValue)
Add string type parameter.
|
void |
end()
Finalize the encode operation.
|
HttpEntity |
getEntity()
Build an entity object to send in the request.
|
public void addPart(java.lang.String paramName,
java.io.File file)
throws java.io.IOException
paramName - file - file parameter to send.java.io.IOExceptionpublic void addPart(java.lang.String paramName,
java.lang.String paramValue)
throws java.io.IOException
paramName - paramValue - java.io.IOExceptionpublic void end()
throws java.io.IOException
java.io.IOExceptionpublic HttpEntity getEntity()
throws java.io.IOException
java.io.IOException