Interface BodyInserters.MultipartInserter
- All Superinterfaces:
- BodyInserter<MultiValueMap<String,- Object>, ClientHttpRequest>, BodyInserters.FormInserter<Object> 
- Enclosing class:
- BodyInserters
Extension of 
BodyInserters.FormInserter that allows for adding asynchronous parts.- Since:
- 5.0
- Author:
- Arjen Poutsma, Rossen Stoyanchev, Sebastien Deleuze
- 
Nested Class SummaryNested classes/interfaces inherited from interface BodyInserterBodyInserter.Context
- 
Method SummaryModifier and TypeMethodDescription<T, P extends Publisher<T>>
 BodyInserters.MultipartInserterwithPublisher(String name, P publisher, Class<T> elementClass) Add an asynchronous part withPublisher-based content.<T, P extends Publisher<T>>
 BodyInserters.MultipartInserterwithPublisher(String name, P publisher, ParameterizedTypeReference<T> typeReference) Variant ofwithPublisher(String, Publisher, Class)that accepts aParameterizedTypeReferencefor the element type, which allows specifying generic type information.Methods inherited from interface BodyInserterinsertMethods inherited from interface BodyInserters.FormInserterwith, with
- 
Method Details- 
withPublisher<T, P extends 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 add
- publisher- the part contents
- elementClass- the type of elements contained in the publisher
- Returns:
- this inserter for adding more parts
 
- 
withPublisher<T, P extends Publisher<T>> BodyInserters.MultipartInserter withPublisher(String name, P publisher, ParameterizedTypeReference<T> typeReference) Variant ofwithPublisher(String, Publisher, Class)that accepts aParameterizedTypeReferencefor the element type, which allows specifying generic type information.- Parameters:
- name- the key to be added
- publisher- the publisher to be added as value
- typeReference- the type of elements contained in- publisher
- Returns:
- this inserter for adding more parts
 
 
-