Interface BodyInserters.MultipartInserter
- All Superinterfaces:
BodyInserter<MultiValueMap<String,Object>,ClientHttpRequest>
,BodyInserters.FormInserter<Object>
- Enclosing class:
- BodyInserters
public static interface BodyInserters.MultipartInserter extends BodyInserters.FormInserter<Object>
Extension ofBodyInserters.FormInserter
that allows for adding asynchronous parts.
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.web.reactive.function.BodyInserter
BodyInserter.Context
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T,P extends org.reactivestreams.Publisher<T>>
BodyInserters.MultipartInserterwithPublisher(String name, P publisher, Class<T> elementClass)
Add an asynchronous part withPublisher
-based content.<T,P extends org.reactivestreams.Publisher<T>>
BodyInserters.MultipartInserterwithPublisher(String name, P publisher, ParameterizedTypeReference<T> typeReference)
Variant ofwithPublisher(String, Publisher, Class)
that accepts aParameterizedTypeReference
for the element type, which allows specifying generic type information.Methods inherited from interface org.springframework.web.reactive.function.BodyInserter
insert
Methods inherited from interface org.springframework.web.reactive.function.BodyInserters.FormInserter
with, with
Method Detail
withPublisher
<T,P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(String name, P publisher, Class<T> elementClass)
Add an asynchronous part withPublisher
-based content.- Parameters:
name
- the name of the part to addpublisher
- the part contentselementClass
- the type of elements contained in the publisher- Returns:
- this inserter for adding more parts
withPublisher
<T,P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(String name, P publisher, ParameterizedTypeReference<T> typeReference)
Variant ofwithPublisher(String, Publisher, Class)
that accepts aParameterizedTypeReference
for the element type, which allows specifying generic type information.- Parameters:
name
- the key to be addedpublisher
- the publisher to be added as valuetypeReference
- the type of elements contained inpublisher
- Returns:
- this inserter for adding more parts