private static class BodyInserters.DefaultFormInserter extends java.lang.Object implements BodyInserters.FormInserter<java.lang.String>
BodyInserter.Context
Modifier and Type | Field and Description |
---|---|
private MultiValueMap<java.lang.String,java.lang.String> |
data |
Modifier | Constructor and Description |
---|---|
private |
DefaultFormInserter() |
Modifier and Type | Method and Description |
---|---|
<any> |
insert(ClientHttpRequest outputMessage,
BodyInserter.Context context)
Insert into the given output message.
|
BodyInserters.FormInserter<java.lang.String> |
with(MultiValueMap<java.lang.String,java.lang.String> values)
Adds the specified values to the form.
|
BodyInserters.FormInserter<java.lang.String> |
with(java.lang.String key,
java.lang.String value)
Adds the specified key-value pair to the form.
|
private final MultiValueMap<java.lang.String,java.lang.String> data
public BodyInserters.FormInserter<java.lang.String> with(java.lang.String key, @Nullable java.lang.String value)
BodyInserters.FormInserter
with
in interface BodyInserters.FormInserter<java.lang.String>
key
- the key to be addedvalue
- the value to be addedpublic BodyInserters.FormInserter<java.lang.String> with(MultiValueMap<java.lang.String,java.lang.String> values)
BodyInserters.FormInserter
with
in interface BodyInserters.FormInserter<java.lang.String>
values
- the values to be addedpublic <any> insert(ClientHttpRequest outputMessage, BodyInserter.Context context)
BodyInserter
insert
in interface BodyInserter<MultiValueMap<java.lang.String,java.lang.String>,ClientHttpRequest>
outputMessage
- the response to insert intocontext
- the context to useMono
that indicates completion or error