Class MultipartBody

java.lang.Object
io.micronaut.http.client.multipart.MultipartBody

public final class MultipartBody extends Object
A builder class to generate a list of parts for a multipart request.
Since:
1.0
Author:
James Kleeh, graemerocher
  • Method Details

    • getData

      @Internal public <T> List<T> getData(MultipartDataFactory<T> factory)
      Create a list of data objects using the given factory.
      Type Parameters:
      T - The data type
      Parameters:
      factory - The factory used to create the data objects.
      Returns:
      List of data objects
    • builder

      public static MultipartBody.Builder builder()
      Returns:
      A Builder to build MultipartBody.