类 BodyInserters.DefaultMultipartInserter
java.lang.Object
cn.taketoday.web.reactive.function.BodyInserters.DefaultMultipartInserter
- 所有已实现的接口:
BodyInserter<cn.taketoday.util.MultiValueMap<String,,Object>, ClientHttpRequest> BodyInserters.FormInserter<Object>,BodyInserters.MultipartInserter
- 封闭类:
- BodyInserters
private static class BodyInserters.DefaultMultipartInserter
extends Object
implements BodyInserters.MultipartInserter
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.web.reactive.function.BodyInserter
BodyInserter.Context -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明reactor.core.publisher.Mono<Void>insert(ClientHttpRequest outputMessage, BodyInserter.Context context) Insert into the given output message.Adds the specified values to the form.Adds the specified key-value pair to the form.private BodyInserters.MultipartInserterwithInternal(cn.taketoday.util.MultiValueMap<String, ?> values) <T,P extends org.reactivestreams.Publisher<T>>
BodyInserters.MultipartInserterwithPublisher(String name, P publisher, cn.taketoday.core.ParameterizedTypeReference<T> typeReference) Variant ofBodyInserters.MultipartInserter.withPublisher(String, Publisher, Class)that accepts aParameterizedTypeReferencefor the element type, which allows specifying generic type information.<T,P extends org.reactivestreams.Publisher<T>>
BodyInserters.MultipartInserterwithPublisher(String name, P publisher, Class<T> elementClass) Add an asynchronous part withPublisher-based content.
-
字段详细资料
-
builder
-
-
构造器详细资料
-
DefaultMultipartInserter
private DefaultMultipartInserter()
-
-
方法详细资料
-
with
从接口复制的说明:BodyInserters.FormInserterAdds the specified key-value pair to the form.- 指定者:
with在接口中BodyInserters.FormInserter<Object>- 参数:
key- the key to be addedvalue- the value to be added- 返回:
- this inserter for adding more parts
-
with
从接口复制的说明:BodyInserters.FormInserterAdds the specified values to the form.- 指定者:
with在接口中BodyInserters.FormInserter<Object>- 参数:
values- the values to be added- 返回:
- this inserter for adding more parts
-
withInternal
private BodyInserters.MultipartInserter withInternal(cn.taketoday.util.MultiValueMap<String, ?> values) -
withPublisher
public <T,P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(String name, P publisher, Class<T> elementClass) 从接口复制的说明:BodyInserters.MultipartInserterAdd an asynchronous part withPublisher-based content.- 指定者:
withPublisher在接口中BodyInserters.MultipartInserter- 参数:
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
public <T,P extends org.reactivestreams.Publisher<T>> BodyInserters.MultipartInserter withPublisher(String name, P publisher, cn.taketoday.core.ParameterizedTypeReference<T> typeReference) 从接口复制的说明:BodyInserters.MultipartInserterVariant ofBodyInserters.MultipartInserter.withPublisher(String, Publisher, Class)that accepts aParameterizedTypeReferencefor the element type, which allows specifying generic type information.- 指定者:
withPublisher在接口中BodyInserters.MultipartInserter- 参数:
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
-
insert
public reactor.core.publisher.Mono<Void> insert(ClientHttpRequest outputMessage, BodyInserter.Context context) 从接口复制的说明:BodyInserterInsert into the given output message.- 指定者:
insert在接口中BodyInserter<cn.taketoday.util.MultiValueMap<String,Object>, ClientHttpRequest> - 参数:
outputMessage- the response to insert intocontext- the context to use- 返回:
- a
Monothat indicates completion or error
-