Class MultipartForm

java.lang.Object
io.vertx.mutiny.ext.web.multipart.MultipartForm
All Implemented Interfaces:
MutinyDelegate, Iterable<FormDataPart>

public class MultipartForm extends Object implements Iterable<FormDataPart>, MutinyDelegate
A multipart form.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

Author:
Julien Viet
See Also:
  • MultipartForm
  • Field Details

  • Constructor Details

    • MultipartForm

      public MultipartForm(io.vertx.ext.web.multipart.MultipartForm delegate)
      Create a new instance of MultipartForm delegating to the given (non-null) instance of MultipartForm.
    • MultipartForm

      public MultipartForm(Object delegate)
  • Method Details

    • iterator

      public Iterator<FormDataPart> iterator()
      Specified by:
      iterator in interface Iterable<FormDataPart>
    • toMulti

      @CheckReturnValue public io.smallrye.mutiny.Multi<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:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • create

      public static MultipartForm create()
      Returns:
      a multipart form instance
    • setCharset

      public MultipartForm setCharset(String charset)
      Set the charset to use when encoding the form. The default charset is StandardCharsets.UTF_8.
      Parameters:
      charset - the charset to use
      Returns:
      a reference to this, so the API can be used fluently
    • setCharset

      public MultipartForm setCharset(Charset charset)
      Set the charset to use when encoding the form. The default charset is StandardCharsets.UTF_8.
      Parameters:
      charset - the charset to use
      Returns:
      a reference to this, so the API can be used fluently
    • getCharset

      public Charset getCharset()
      Returns:
      the charset to use when encoding the form
    • attribute

      public MultipartForm attribute(String name, String value)
      Add an attribute form data part.
      Parameters:
      name - the name of the attribute
      value - 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 parameter
      filename - filename of the file
      pathname - the pathname of the file
      mediaType - 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 parameter
      filename - filename of the file
      content - the content of the file
      mediaType - 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 parameter
      filename - filename of the file
      pathname - the pathname of the file
      mediaType - 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 parameter
      filename - filename of the file
      content - the content of the file
      mediaType - the MIME type of the file
      Returns:
      a reference to this, so the API can be used fluently
    • newInstance

      public static MultipartForm newInstance(io.vertx.ext.web.multipart.MultipartForm delegate)
      Creates a new instance of the MultipartForm.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object