public class MultipartForm extends Object implements Iterable<FormDataPart>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<MultipartForm> |
__TYPE_ARG |
Constructor and Description |
---|
MultipartForm(MultipartForm delegate) |
MultipartForm(Object delegate) |
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() |
boolean |
equals(Object o) |
Charset |
getCharset() |
MultipartForm |
getDelegate() |
int |
hashCode() |
Iterator<FormDataPart> |
iterator() |
static MultipartForm |
newInstance(MultipartForm arg) |
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.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final io.vertx.lang.rx.TypeArg<MultipartForm> __TYPE_ARG
public MultipartForm(MultipartForm delegate)
public MultipartForm(Object delegate)
public Iterator<FormDataPart> iterator()
iterator
in interface Iterable<FormDataPart>
public MultipartForm getDelegate()
public static MultipartForm create()
public MultipartForm setCharset(String charset)
charset
to use when encoding the form. The default charset is StandardCharsets
.charset
- the charset to usepublic MultipartForm attribute(String name, String value)
name
- the name of the attributevalue
- the value of the attributepublic MultipartForm 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 filepublic MultipartForm 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 filepublic MultipartForm 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 filepublic MultipartForm 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 filepublic MultipartForm setCharset(Charset charset)
charset
to use when encoding the form. The default charset is StandardCharsets
.charset
- the charset to usepublic Charset getCharset()
public static MultipartForm newInstance(MultipartForm arg)
Copyright © 2023 Eclipse. All rights reserved.