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(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,
String name)
Add the content to the
MultipartFormDataContent class with field name parameter
|
void |
add(Content content,
String name,
String fileName)
Add the content to the
MultipartFormDataContent class with field and file name parameter
|
iterator_Rename_Namesake, iterator
dispose, getHeaders, readAsByteArray, readAsStream, readAsString
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public MultipartFormDataContent()
Initializes a new instance of the MultipartFormDataContent
class.
public MultipartFormDataContent(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 MultipartContent
content
- The content.public void add(Content content, 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, String name, 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.