public class MultiPartEntity
extends org.apache.http.entity.mime.MultipartEntity
| Constructor and Description |
|---|
MultiPartEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilePart(String key,
org.apache.http.entity.FileEntity value)
Adds a new file based
HttpEntity to the entity. |
void |
addFilePart(String key,
String filename,
org.apache.http.entity.FileEntity value)
Deprecated.
|
void |
addPart(String key,
org.apache.http.HttpEntity value)
Adds a new
HttpEntity value to the entity. |
void |
addPart(String key,
String value)
Adds a basic KV part to the entity
|
public void addPart(String key, String value)
key - The new valuevalue - The value valuepublic void addPart(String key, org.apache.http.HttpEntity value)
HttpEntity value to the entity. note: if you're
looking to add a FileEntity, use addFilePart(String, FileEntity)key - The key to addvalue - The HttpEntity part to addpublic void addFilePart(String key, org.apache.http.entity.FileEntity value)
HttpEntity to the entity.key - The key to addvalue - The FileEntity part to add@Deprecated public void addFilePart(String key, String filename, org.apache.http.entity.FileEntity value)
HttpEntity to the entity.