Class FileFormParams.Builder

java.lang.Object
io.helidon.reactive.media.multipart.FileFormParams.Builder
All Implemented Interfaces:
Builder<FileFormParams.Builder,FileFormParams>, Supplier<FileFormParams>
Enclosing interface:
FileFormParams

public static class FileFormParams.Builder extends Object implements Builder<FileFormParams.Builder,FileFormParams>
Fluent API builder of FileFormParams.
  • Method Details

    • build

      public FileFormParams build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<FileFormParams.Builder,FileFormParams>
      Returns:
      instance of the built type
    • add

      public FileFormParams.Builder add(String name, String... values)
      Add a parameter.
      Parameters:
      name - parameter name
      values - parameter value
      Returns:
      updated builder
    • 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