Class 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.

    • Constructor Detail

      • ClientMultipartForm

        public ClientMultipartForm​(Object delegate)
    • Method Detail

      • multipartForm

        public static ClientMultipartForm multipartForm()
        Returns:
        a blank multipart form
      • mixed

        public ClientMultipartForm mixed​(boolean allow)
        Allow or disallow multipart mixed encoding when files are sharing the same file name.
        The default value is true.
        Set to false 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 parameter
        filename - filename of the file
        mediaType - the MIME type of the file
        content - 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 parameter
        filename - filename of the file
        mediaType - the MIME type of the file
        content - 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 parameter
        filename - filename of the file
        mediaType - the MIME type of the file
        pathname - 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 parameter
        filename - filename of the file
        mediaType - the MIME type of the file
        pathname - the pathname of the file
        Returns:
        a reference to this, so the API can be used fluently