public class MultipartFormDataContent extends MultipartContent
Represent content for multipart/form-data encoding algorithm
DEFAULT_HTTP_ENCODING, DEFAULT_STRING_ENCODING| Constructor and Description |
|---|
MultipartFormDataContent()
Initializes a new instance of the
MultipartFormDataContent class. |
MultipartFormDataContent(java.lang.String boundary)
Initializes a new instance of the
MultipartFormDataContent class. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Content content)
Add the content to the
MultipartFormDataContent class
|
void |
add(Content content,
java.lang.String name)
Add the content to the
MultipartFormDataContent class with field name parameter
|
void |
add(Content content,
java.lang.String name,
java.lang.String fileName)
Add the content to the
MultipartFormDataContent class with field and file name parameter
|
dispose, iterator_Rename_Namesake, iterator, serializeToStreamdispose, getHeaders, readAsByteArray, readAsStream, readAsStringpublic MultipartFormDataContent()
Initializes a new instance of the MultipartFormDataContent class.
public MultipartFormDataContent(java.lang.String boundary)
Initializes a new instance of the MultipartFormDataContent class.
boundary - The boundary.public void add(Content content)
Add the content to the MultipartFormDataContent class
add in class MultipartContentcontent - The content.public void add(Content content, java.lang.String name)
Add the content to the MultipartFormDataContent class with field name parameter
content - The content.name - The field name.public void add(Content content, java.lang.String name, java.lang.String fileName)
Add the content to the MultipartFormDataContent class with field and file name parameter
content - The content.name - The field name.fileName - The file name.