Class FormDataPart

java.lang.Object
io.vertx.mutiny.ext.web.multipart.FormDataPart
All Implemented Interfaces:
MutinyDelegate

public class FormDataPart extends Object implements MutinyDelegate
A form data part of a MultipartForm.

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

See Also:
  • FormDataPart
  • Field Details

  • Constructor Details

    • FormDataPart

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

      public FormDataPart(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.ext.web.multipart.FormDataPart 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
    • name

      public String name()
      Returns:
      the name
    • isAttribute

      public boolean isAttribute()
      Returns:
      true when this part is an attribute
    • isFileUpload

      public boolean isFileUpload()
      Returns:
      true when this part is a file upload
    • value

      public String value()
      Returns:
      the value when the part for a form attribute otherwise null
    • filename

      public String filename()
      Returns:
      the filename when this part is a file upload otherwise null
    • pathname

      public String pathname()
      Returns:
      the pathname when this part is a file upload created with a pathname otherwise null
    • content

      public io.vertx.core.buffer.Buffer content()
      Returns:
      the content when this part is a file upload created with a buffer otherwise null
    • mediaType

      public String mediaType()
      Returns:
      the media type when this part is a file upload otherwise null
    • isText

      public Boolean isText()
      Returns:
      whether the file upload is text or binary when this part is a file upload otherwise null
    • newInstance

      public static FormDataPart newInstance(io.vertx.ext.web.multipart.FormDataPart delegate)
      Creates a new instance of the FormDataPart.
    • 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