Class FileFormParams.Builder

    • Method Detail

      • addFile

        public FileFormParams.Builder addFile​(String name,
                                              String fileName,
                                              Path file)
        Add file with specific name and filename to the form.
        Parameters:
        name - content disposition name
        fileName - content disposition filename
        file - file path
        Returns:
        update builder instance
      • addFile

        public FileFormParams.Builder addFile​(String name,
                                              Path... files)
        Add files with specific name to the form. Filename parameter is based on an actual name of the file.
        Parameters:
        name - content disposition name
        files - files
        Returns:
        update builder instance