Class MultipartForm
java.lang.Object
io.vertx.rxjava3.ext.web.multipart.MultipartForm
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate, Iterable<FormDataPart>
public class MultipartForm
extends Object
implements io.vertx.lang.rx.RxDelegate, Iterable<FormDataPart>
A multipart form.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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()booleaninthashCode()iterator()static MultipartFormnewInstance(MultipartForm arg) 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.toString()Methods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MultipartForm
-
MultipartForm
-
-
Method Details
-
toString
-
equals
-
hashCode
-
iterator
- Specified by:
iteratorin interfaceIterable<FormDataPart>
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
create
- Returns:
- a multipart form instance
-
setCharset
Set thecharsetto use when encoding the form. The default charset isStandardCharsets.- Parameters:
charset- the charset to use- Returns:
- a reference to this, so the API can be used fluently
-
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
public MultipartForm textFileUpload(String name, String filename, String pathname, String mediaType) 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
public MultipartForm binaryFileUpload(String name, String filename, String pathname, String mediaType) 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
public MultipartForm binaryFileUpload(String name, String filename, Buffer content, String mediaType) 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
-
setCharset
Set thecharsetto use when encoding the form. The default charset isStandardCharsets.- Parameters:
charset- the charset to use- Returns:
- a reference to this, so the API can be used fluently
-
getCharset
- Returns:
- the charset to use when encoding the form
-
newInstance
-