public interface MultipartForm extends Iterable<FormDataPart>
Modifier and Type | Method and Description |
---|---|
MultipartForm |
attribute(String name,
String value)
Add an attribute form data part.
|
MultipartForm |
binaryFileUpload(String name,
String filename,
Buffer content,
String mediaType)
Add a binary file upload form data part.
|
MultipartForm |
binaryFileUpload(String name,
String filename,
String pathname,
String mediaType)
Add a binary file upload form data part.
|
static MultipartForm |
create() |
Charset |
getCharset() |
MultipartForm |
setCharset(Charset charset)
Set the
charset to use when encoding the form. |
MultipartForm |
setCharset(String charset)
Set the
charset to use when encoding the form. |
MultipartForm |
textFileUpload(String name,
String filename,
Buffer content,
String mediaType)
Add a text file upload form data part.
|
MultipartForm |
textFileUpload(String name,
String filename,
String pathname,
String mediaType)
Add a text file upload form data part.
|
forEach, iterator, spliterator
static MultipartForm create()
MultipartForm setCharset(String charset)
charset
to use when encoding the form. The default charset is StandardCharsets.UTF_8
.charset
- the charset to useMultipartForm setCharset(Charset charset)
charset
to use when encoding the form. The default charset is StandardCharsets.UTF_8
.charset
- the charset to useCharset getCharset()
MultipartForm attribute(String name, String value)
name
- the name of the attributevalue
- the value of the attributeMultipartForm textFileUpload(String name, String filename, String pathname, String mediaType)
name
- name of the parameterfilename
- filename of the filepathname
- the pathname of the filemediaType
- the MIME type of the fileMultipartForm textFileUpload(String name, String filename, Buffer content, String mediaType)
name
- name of the parameterfilename
- filename of the filecontent
- the content of the filemediaType
- the MIME type of the fileMultipartForm binaryFileUpload(String name, String filename, String pathname, String mediaType)
name
- name of the parameterfilename
- filename of the filepathname
- the pathname of the filemediaType
- the MIME type of the fileMultipartForm binaryFileUpload(String name, String filename, Buffer content, String mediaType)
name
- name of the parameterfilename
- filename of the filecontent
- the content of the filemediaType
- the MIME type of the fileCopyright © 2023 Eclipse. All rights reserved.