Class MultipartBody
java.lang.Object
io.micronaut.http.client.multipart.MultipartBody
A builder class to generate a list a list of parts for a multi part request.
- Since:
- 1.0
- Author:
- James Kleeh, graemerocher
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A builder class to add differentPart
toMultipartBody
. -
Method Summary
Modifier and TypeMethodDescriptionstatic MultipartBody.Builder
builder()
<T> List<T>
getData
(MultipartDataFactory<T> factory) Create a list of data objects using the given factory.
-
Method Details
-
getData
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
- Returns:
- A Builder to build MultipartBody.
-