Package io.vertx.reactivex.core.http
Class ClientMultipartForm
- java.lang.Object
-
- io.vertx.reactivex.core.http.ClientForm
-
- io.vertx.reactivex.core.http.ClientMultipartForm
-
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
public class ClientMultipartForm extends ClientForm implements io.vertx.lang.rx.RxDelegate
A multipart form, providing file upload capabilities.NOTE: This class has been automatically generated from the
original
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<ClientMultipartForm>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ClientMultipartForm(ClientMultipartForm delegate)
ClientMultipartForm(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientMultipartForm
attribute(String name, String value)
ClientMultipartForm
binaryFileUpload(String name, String filename, String mediaType, Buffer content)
Add a binary file upload form data part.ClientMultipartForm
binaryFileUpload(String name, String filename, String mediaType, String pathname)
Add a binary file upload form data part.ClientMultipartForm
charset(String charset)
Set thecharset
to use when encoding the form.ClientMultipartForm
charset(Charset charset)
Set thecharset
to use when encoding the form.boolean
equals(Object o)
ClientMultipartForm
getDelegate()
int
hashCode()
boolean
mixed()
ClientMultipartForm
mixed(boolean allow)
Allow or disallow multipart mixed encoding when files are sharing the same file name.static ClientMultipartForm
multipartForm()
static ClientMultipartForm
newInstance(ClientMultipartForm arg)
ClientMultipartForm
textFileUpload(String name, String filename, String mediaType, Buffer content)
Add a text file upload form data part.ClientMultipartForm
textFileUpload(String name, String filename, String mediaType, String pathname)
Add a text file upload form data part.String
toString()
-
Methods inherited from class io.vertx.reactivex.core.http.ClientForm
charset, form, form, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<ClientMultipartForm> __TYPE_ARG
-
-
Constructor Detail
-
ClientMultipartForm
public ClientMultipartForm(ClientMultipartForm delegate)
-
ClientMultipartForm
public ClientMultipartForm(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classClientForm
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classClientForm
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classClientForm
-
getDelegate
public ClientMultipartForm getDelegate()
- Specified by:
getDelegate
in interfaceio.vertx.lang.rx.RxDelegate
- Overrides:
getDelegate
in classClientForm
-
multipartForm
public static ClientMultipartForm multipartForm()
- Returns:
- a blank multipart form
-
attribute
public ClientMultipartForm attribute(String name, String value)
- Overrides:
attribute
in classClientForm
- Parameters:
name
-value
-- Returns:
-
charset
public ClientMultipartForm charset(String charset)
Description copied from class:ClientForm
Set thecharset
to use when encoding the form. The default charset isStandardCharsets
.- Overrides:
charset
in classClientForm
- Parameters:
charset
-- Returns:
-
mixed
public ClientMultipartForm mixed(boolean allow)
Allow or disallow multipart mixed encoding when files are sharing the same file name.
The default value istrue
.
Set tofalse
if you want to achieve the behavior for HTML5.- Parameters:
allow
-true
allows use of multipart mixed encoding- Returns:
- a reference to this, so the API can be used fluently
-
mixed
public boolean mixed()
- Returns:
- whether multipart mixed encoding is allowed
-
textFileUpload
public ClientMultipartForm textFileUpload(String name, String filename, String mediaType, Buffer content)
Add a text file upload form data part.- Parameters:
name
- name of the parameterfilename
- filename of the filemediaType
- the MIME type of the filecontent
- the content of the file- Returns:
- a reference to this, so the API can be used fluently
-
binaryFileUpload
public ClientMultipartForm binaryFileUpload(String name, String filename, String mediaType, Buffer content)
Add a binary file upload form data part.- Parameters:
name
- name of the parameterfilename
- filename of the filemediaType
- the MIME type of the filecontent
- the content of the file- Returns:
- a reference to this, so the API can be used fluently
-
textFileUpload
public ClientMultipartForm textFileUpload(String name, String filename, String mediaType, String pathname)
Add a text file upload form data part.- Parameters:
name
- name of the parameterfilename
- filename of the filemediaType
- the MIME type of the filepathname
- the pathname of the file- Returns:
- a reference to this, so the API can be used fluently
-
binaryFileUpload
public ClientMultipartForm binaryFileUpload(String name, String filename, String mediaType, String pathname)
Add a binary file upload form data part.- Parameters:
name
- name of the parameterfilename
- filename of the filemediaType
- the MIME type of the filepathname
- the pathname of the file- Returns:
- a reference to this, so the API can be used fluently
-
charset
public ClientMultipartForm charset(Charset charset)
Description copied from class:ClientForm
Set thecharset
to use when encoding the form. The default charset isStandardCharsets
.- Overrides:
charset
in classClientForm
- Parameters:
charset
-- Returns:
-
newInstance
public static ClientMultipartForm newInstance(ClientMultipartForm arg)
-
-