public static interface BodyInserters.MultipartInserter extends BodyInserters.FormInserter<java.lang.Object>
BodyInserters.FormInserter
that has methods for adding asynchronous part data.BodyInserter.Context
Modifier and Type | Method and Description |
---|---|
<T,P extends org.reactivestreams.Publisher<T>> |
withPublisher(java.lang.String key,
P publisher,
java.lang.Class<T> elementClass)
Adds the specified publisher as a part.
|
<T,P extends org.reactivestreams.Publisher<T>> |
withPublisher(java.lang.String key,
P publisher,
ParameterizedTypeReference<T> typeReference)
Adds the specified publisher as a part.
|
with, with
insert
<T,P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(java.lang.String key, P publisher, java.lang.Class<T> elementClass)
key
- the key to be addedpublisher
- the publisher to be added as valueelementClass
- the class of elements contained in publisher
<T,P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(java.lang.String key, P publisher, ParameterizedTypeReference<T> typeReference)
key
- the key to be addedpublisher
- the publisher to be added as valuetypeReference
- the type of elements contained in publisher