Interface MultipartForm
- All Superinterfaces:
Iterable<FormDataPart>
-
Method Summary
Modifier and TypeMethodDescriptionAdd an attribute form data part.binaryFileUpload(String name, String filename, Buffer content, String mediaType) Add a binary file upload form data part.binaryFileUpload(String name, String filename, String pathname, String mediaType) Add a binary file upload form data part.static MultipartFormcreate()setCharset(String charset) Set thecharsetto use when encoding the form.setCharset(Charset charset) Set thecharsetto use when encoding the form.textFileUpload(String name, String filename, Buffer content, String mediaType) Add a text file upload form data part.textFileUpload(String name, String filename, String pathname, String mediaType) Add a text file upload form data part.Methods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
create
- Returns:
- a multipart form instance
-
setCharset
Set thecharsetto use when encoding the form. The default charset isStandardCharsets.UTF_8.- Parameters:
charset- the charset to use- Returns:
- a reference to this, so the API can be used fluently
-
setCharset
Set thecharsetto use when encoding the form. The default charset isStandardCharsets.UTF_8.- Parameters:
charset- the charset to use- Returns:
- a reference to this, so the API can be used fluently
-
getCharset
Charset getCharset()- Returns:
- the charset to use when encoding the form
-
attribute
Add an attribute form data part.- Parameters:
name- the name of the attributevalue- the value of the attribute- Returns:
- a reference to this, so the API can be used fluently
-
textFileUpload
Add a text file upload form data part.- Parameters:
name- name of the parameterfilename- filename of the filepathname- the pathname of the filemediaType- the MIME type of the file- Returns:
- a reference to this, so the API can be used fluently
-
textFileUpload
Add a text file upload form data part.- Parameters:
name- name of the parameterfilename- filename of the filecontent- the content of the filemediaType- the MIME type of the file- Returns:
- a reference to this, so the API can be used fluently
-
binaryFileUpload
Add a binary file upload form data part.- Parameters:
name- name of the parameterfilename- filename of the filepathname- the pathname of the filemediaType- the MIME type of the file- Returns:
- a reference to this, so the API can be used fluently
-
binaryFileUpload
Add a binary file upload form data part.- Parameters:
name- name of the parameterfilename- filename of the filecontent- the content of the filemediaType- the MIME type of the file- Returns:
- a reference to this, so the API can be used fluently
-