Interface MultipartFormDataStreamBuilder

All Known Implementing Classes:
StandardMultipartFormDataStreamBuilder

public interface MultipartFormDataStreamBuilder
Multipart Form Data Stream Builder supports construction of an Input Stream with form-data sections according to RFC 7578
  • Method Details

    • build

      InputStream build()
      Build Input Stream based on current component elements
      Returns:
      Input Stream
    • getHttpContentType

      HttpContentType getHttpContentType()
      Get Content-Type Header value containing multipart/form-data with boundary
      Returns:
      Multipart HTTP Content-Type
    • addPart

      MultipartFormDataStreamBuilder addPart(String name, HttpContentType httpContentType, InputStream inputStream)
      Add Part using specified Name with Content-Type and Stream
      Parameters:
      name - Name field of part to be added
      httpContentType - Content-Type of part to be added
      inputStream - Stream content of part to be added
      Returns:
      Builder
    • addPart

      MultipartFormDataStreamBuilder addPart(String name, HttpContentType httpContentType, byte[] bytes)
      Add Part using specified Name with Content-Type and byte array
      Parameters:
      name - Name field of part to be added
      httpContentType - Content-Type of part to be added
      bytes - Byte array content of part to be added
      Returns:
      Builder