public static interface BodyInserters.MultipartInserter extends BodyInserters.FormInserter<java.lang.Object>
BodyInserters.FormInserter that allows for adding asynchronous parts.BodyInserter.Context| Modifier and Type | Method and Description |
|---|---|
<T,P extends org.reactivestreams.Publisher<T>> |
withPublisher(java.lang.String name,
P publisher,
java.lang.Class<T> elementClass)
Add an asynchronous part with
Publisher-based content. |
<T,P extends org.reactivestreams.Publisher<T>> |
withPublisher(java.lang.String name,
P publisher,
ParameterizedTypeReference<T> typeReference)
Variant of
withPublisher(String, Publisher, Class) that accepts a
ParameterizedTypeReference for the element type, which allows
specifying generic type information. |
with, withinsert<T,P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(java.lang.String name, P publisher, java.lang.Class<T> elementClass)
Publisher-based content.name - the name of the part to addpublisher - the part contentselementClass - the type of elements contained in the publisher<T,P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(java.lang.String name, P publisher, ParameterizedTypeReference<T> typeReference)
withPublisher(String, Publisher, Class) that accepts a
ParameterizedTypeReference for the element type, which allows
specifying generic type information.name - the key to be addedpublisher - the publisher to be added as valuetypeReference - the type of elements contained in publisher