class MultiPartForm extends FormData
Create a Multipart form used for uploading files.
Constructor and description |
---|
MultiPartForm() |
Type Params | Return Type | Name and description |
---|---|---|
|
MultiPartForm |
addParameter(java.lang.String name, java.lang.String[] values) Add a parameter to the form. |
|
MultiPartForm |
addParameter(java.lang.String name, java.io.File file) Add a file attachment. |
|
protected org.apache.http.entity.ContentType |
getEncType() |
|
protected org.apache.http.HttpEntity |
getEntity() |
|
MultiPartForm |
withParameters(java.util.Map<java.lang.String, java.lang.Object> params) Convenience method for adding parameters to the form from a Map. |
Methods inherited from class | Name |
---|---|
class FormData |
addParameter, createBasicForm, createMultipartForm, getEncType, getEntity |
Add a parameter to the form.
name
- The name of the form field.values
- One or more values (for checkbox arrays).Add a file attachment.
name
- The name of the field.file
- The file.Convenience method for adding parameters to the form from a Map.
params
- The parameters to add to the form.