Class MultipartForm
java.lang.Object
io.vertx.mutiny.ext.web.multipart.MultipartForm
- All Implemented Interfaces:
MutinyDelegate,Iterable<FormDataPart>
A multipart form.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Julien Viet
- See Also:
-
MultipartForm
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMultipartForm(io.vertx.ext.web.multipart.MultipartForm delegate) Create a new instance ofMultipartFormdelegating to the given (non-null) instance ofMultipartForm.MultipartForm(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionAdd an attribute form data part.binaryFileUpload(String name, String filename, io.vertx.core.buffer.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()booleanio.vertx.ext.web.multipart.MultipartFormGet the delegate instance.inthashCode()iterator()static MultipartFormnewInstance(io.vertx.ext.web.multipart.MultipartForm delegate) Creates a new instance of theMultipartForm.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, io.vertx.core.buffer.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.io.smallrye.mutiny.Multi<FormDataPart>toMulti()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
MultipartForm
public MultipartForm(io.vertx.ext.web.multipart.MultipartForm delegate) Create a new instance ofMultipartFormdelegating to the given (non-null) instance ofMultipartForm. -
MultipartForm
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<FormDataPart>
-
toMulti
-
getDelegate
public io.vertx.ext.web.multipart.MultipartForm getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
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
- 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
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
public MultipartForm textFileUpload(String name, String filename, io.vertx.core.buffer.Buffer content, String mediaType) 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, io.vertx.core.buffer.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
-
newInstance
Creates a new instance of theMultipartForm. -
hashCode
public int hashCode() -
equals
-
toString
-