BodyInserter implementations.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| public static interface | BodyInserters.
the value type T>Extension of |
| public static interface | BodyInserters.
Extension of |
| Modifier and Type | Field and Description |
|---|---|
| private static final BodyInserter | |
| private static final ResolvableType | |
| private static final ResolvableType | |
| private static final ReactiveAdapterRegistry | |
| private static final ResolvableType | |
| private static final ResolvableType |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> HttpMessageWriter | |
| public static <T> BodyInserter | |
| private static <T> HttpMessageWriter | |
| public static < the type of the publisher T extends Publisher | Returns: the inserter to write directly to the bodythe data buffer publisher to write publisher)Inserter to write the given |
| public static BodyInserters. | Returns: the inserter that allows adding more form datathe form data to write to the output message formData)Return a |
| public static BodyInserters. | Returns: the inserter that allows adding more form datathe key to add to the form name, String the value to add to the form value)Return a |
| public static <T, P extends Publisher | Returns: the inserter that allows adding more partsthe part name name, P the publisher that forms the part value publisher, Class<T> the class contained in the elementClass)publisherReturn a |
| public static <T, P extends Publisher | Returns: the inserter that allows adding more partsthe part name name, P the publisher that forms the part value publisher, ParameterizedTypeReference<T> the type contained in the typeReference)publisherVariant of |
| public static BodyInserters. | Returns: the inserter that allows adding more partsthe form data to write to the output message multipartData)Return a |
| public static BodyInserters. | Returns: the inserter that allows adding more partsthe part name name, Object the part value, an Object or value)HttpEntityReturn a |
| public static < the type of the body T> BodyInserter | Returns: the inserter to write a single objectthe body to write to the response body)
Deprecated
As of Spring Framework 5.2, in favor of
fromValue(Object)
Inserter to write the given object. |
| public static <T extends Publisher | Returns: an inserter that writes what is written to the output streaminvoked with an outputStreamConsumer, Executor OutputStream that
writes to the output messageused to invoke the executor)outputStreamHandler on a
separate threadInserter based on bytes written to a |
| public static <T extends Publisher | Returns: an inserter that writes what is written to the output streaminvoked with an outputStreamConsumer, Executor OutputStream that
writes to the output messageused to invoke the executor, int outputStreamHandler on a
separate threadminimum size of the buffer produced by the publisher chunkSize)Inserter based on bytes written to a |
| public static < the type of the body T> BodyInserter | Returns: the inserter to write a producerthe source of body value(s). producer, Class<?> the class of values to be produced elementClass)Inserter to write the given producer of value(s) which must be a |
| public static < the type of the body T> BodyInserter | Returns: the inserter to write a producerthe source of body value(s). producer, ParameterizedTypeReference<?> the type of values to be produced elementTypeRef)Inserter to write the given producer of value(s) which must be a |
| public static < the type of the elements contained in the publisher T, the P extends PublisherPublisher type | Returns: the inserter to write aPublisherthe publisher to write with publisher, Class<T> the class of elements in the publisher elementClass)Inserter to write the given |
| public static < the type of the elements contained in the publisher T, the P extends PublisherPublisher type | Returns: the inserter to write aPublisherthe publisher to write with publisher, ParameterizedTypeReference<T> the type of elements contained in the publisher elementTypeRef)Inserter to write the given |
| public static < the type of the T extends Resource> BodyInserterResource | Returns: the inserter to write aPublisherthe resource to write to the output message resource)Inserter to write the given |
| public static < the type of the data elements in the T, S extends PublisherServerSentEvent | Returns: the inserter to write aServerSentEvent publisherthe eventsPublisher)ServerSentEvent publisher to write to the response bodyInserter to write the given |
| public static < the type of the body T> BodyInserter | Returns: the inserter to write a single valuethe value to write body)Inserter to write the given value. |
| private static UnsupportedMediaTypeException | |
| private static <T> Mono | write(Publisher<? extends T> input, ResolvableType type, MediaType mediaType, ReactiveHttpOutputMessage message, BodyInserter.
|
| private static <M extends ReactiveHttpOutputMessage> Mono | writeWithMessageWriters(M outputMessage, BodyInserter.
|