接口 BodyInserters.MultipartInserter
- 所有超级接口:
BodyInserter<MultiValueMap<String,Object>,ClientHttpRequest>
,BodyInserters.FormInserter<Object>
- 封闭类:
- BodyInserters
public static interface BodyInserters.MultipartInserter extends BodyInserters.FormInserter<Object>
Extension ofBodyInserters.FormInserter
that allows for adding asynchronous parts.
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.web.reactive.function.BodyInserter
BodyInserter.Context
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 <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.从接口继承的方法 org.springframework.web.reactive.function.BodyInserter
insert
从接口继承的方法 org.springframework.web.reactive.function.BodyInserters.FormInserter
with, with
方法详细资料
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.- 参数:
name
- the name of the part to addpublisher
- the part contentselementClass
- the type of elements contained in the publisher- 返回:
- 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.- 参数:
name
- the key to be addedpublisher
- the publisher to be added as valuetypeReference
- the type of elements contained inpublisher
- 返回:
- this inserter for adding more parts