Package | Description |
---|---|
org.springframework.core.codec | |
org.springframework.core.io.buffer |
Generic abstraction for working with byte buffer implementations.
|
org.springframework.http |
Contains a basic abstraction over client/server-side HTTP.
|
org.springframework.http.client.reactive |
Abstractions for reactive HTTP client support including
ClientHttpRequest and
ClientHttpResponse as well as a
ClientHttpConnector . |
org.springframework.http.codec.cbor | |
org.springframework.http.codec.json |
JSON encoder and decoder support.
|
org.springframework.http.codec.multipart |
Multipart support.
|
org.springframework.http.codec.protobuf |
Provides an encoder and a decoder for
Google Protocol Buffers.
|
org.springframework.http.codec.xml |
XML encoder and decoder support.
|
org.springframework.http.server.reactive |
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing. |
org.springframework.messaging.handler.invocation.reactive |
Common infrastructure for invoking message handler methods with non-blocking,
and reactive contracts.
|
org.springframework.messaging.rsocket |
Support for the RSocket protocol.
|
org.springframework.messaging.rsocket.annotation.support |
Support classes for working with annotated RSocket stream handling methods.
|
org.springframework.mock.http.client.reactive |
Mock implementations of reactive HTTP client contracts.
|
org.springframework.mock.http.server.reactive |
Mock implementations of reactive HTTP server contracts.
|
org.springframework.web.reactive.function |
Provides a foundation for both the reactive client and server subpackages.
|
org.springframework.web.reactive.function.client |
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive reactive HTTP adapter layer. |
org.springframework.web.reactive.function.server |
Provides the types that make up Spring's functional web framework for Reactive environments.
|
org.springframework.web.reactive.socket |
Abstractions and support classes for reactive WebSocket interactions.
|
org.springframework.web.reactive.socket.adapter |
Classes adapting Spring's Reactive WebSocket API to and from WebSocket runtimes.
|
Modifier and Type | Method and Description |
---|---|
DataBuffer |
DataBufferDecoder.decode(DataBuffer buffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
DataBuffer |
ByteArrayEncoder.encodeValue(byte[] bytes,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
DataBuffer |
NettyByteBufEncoder.encodeValue(io.netty.buffer.ByteBuf byteBuf,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
DataBuffer |
ByteBufferEncoder.encodeValue(ByteBuffer byteBuffer,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
DataBuffer |
CharSequenceEncoder.encodeValue(CharSequence charSequence,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
DataBuffer |
DataBufferEncoder.encodeValue(DataBuffer buffer,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
default DataBuffer |
Encoder.encodeValue(T value,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints)
Encode an Object of type T to a data buffer.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
DataBufferDecoder.decode(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
ByteArrayEncoder.encode(Publisher<? extends byte[]> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
NettyByteBufEncoder.encode(Publisher<? extends io.netty.buffer.ByteBuf> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
ByteBufferEncoder.encode(Publisher<? extends ByteBuffer> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
CharSequenceEncoder.encode(Publisher<? extends CharSequence> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
DataBufferEncoder.encode(Publisher<? extends DataBuffer> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
ResourceRegionEncoder.encode(Publisher<? extends ResourceRegion> input,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
AbstractSingleValueEncoder.encode(Publisher<? extends T> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
Encoder.encode(Publisher<? extends T> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints)
Encode a stream of Objects of type
T into a DataBuffer
output stream. |
protected reactor.core.publisher.Flux<DataBuffer> |
ResourceEncoder.encode(Resource resource,
DataBufferFactory bufferFactory,
ResolvableType type,
MimeType mimeType,
Map<String,Object> hints) |
protected abstract reactor.core.publisher.Flux<DataBuffer> |
AbstractSingleValueEncoder.encode(T t,
DataBufferFactory dataBufferFactory,
ResolvableType type,
MimeType mimeType,
Map<String,Object> hints)
Encode
T to an output DataBuffer stream. |
Modifier and Type | Method and Description |
---|---|
byte[] |
ByteArrayDecoder.decode(DataBuffer dataBuffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
String |
StringDecoder.decode(DataBuffer dataBuffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
DataBuffer |
DataBufferDecoder.decode(DataBuffer buffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
default T |
Decoder.decode(DataBuffer buffer,
ResolvableType targetType,
MimeType mimeType,
Map<String,Object> hints)
Decode a data buffer to an Object of type T.
|
io.netty.buffer.ByteBuf |
NettyByteBufDecoder.decode(DataBuffer dataBuffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
ByteBuffer |
ByteBufferDecoder.decode(DataBuffer dataBuffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
Resource |
ResourceDecoder.decode(DataBuffer dataBuffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
protected T |
AbstractDataBufferDecoder.decodeDataBuffer(DataBuffer buffer,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints)
Deprecated.
as of 5.2, please implement
Decoder.decode(DataBuffer, ResolvableType, MimeType, Map) instead |
DataBuffer |
DataBufferEncoder.encodeValue(DataBuffer buffer,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
static void |
Hints.touchDataBuffer(DataBuffer buffer,
Map<String,Object> hints,
Log logger)
If the hints contain a
Hints.LOG_PREFIX_HINT and the given logger has
DEBUG level enabled, apply the log prefix as a hint to the given buffer
via DataBufferUtils.touch(DataBuffer, Object) . |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<T> |
AbstractDataBufferDecoder.decode(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<String> |
StringDecoder.decode(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
DataBufferDecoder.decode(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<T> |
Decoder.decode(Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints)
Decode a
DataBuffer input stream into a Flux of T . |
reactor.core.publisher.Flux<Resource> |
ResourceDecoder.decode(Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Mono<T> |
AbstractDataBufferDecoder.decodeToMono(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Mono<T> |
Decoder.decodeToMono(Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints)
Decode a
DataBuffer input stream into a Mono of T . |
reactor.core.publisher.Mono<T> |
AbstractDecoder.decodeToMono(Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
DataBufferEncoder.encode(Publisher<? extends DataBuffer> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Interface and Description |
---|---|
interface |
PooledDataBuffer
Extension of
DataBuffer that allows for buffer that share
a memory pool. |
Modifier and Type | Class and Description |
---|---|
class |
DataBufferWrapper
Provides a convenient implementation of the
DataBuffer interface
that can be overridden to adapt the delegate. |
class |
DefaultDataBuffer
Default implementation of the
DataBuffer interface that uses a
ByteBuffer internally. |
class |
NettyDataBuffer
Implementation of the
DataBuffer interface that wraps a Netty
ByteBuf . |
Modifier and Type | Method and Description |
---|---|
static <T extends DataBuffer> |
DataBufferUtils.retain(T dataBuffer)
Retain the given data buffer, if it is a
PooledDataBuffer . |
static <T extends DataBuffer> |
DataBufferUtils.touch(T dataBuffer,
Object hint)
Associate the given hint with the data buffer if it is a pooled buffer
and supports leak tracking.
|
Modifier and Type | Method and Description |
---|---|
DataBuffer |
DataBufferFactory.allocateBuffer()
Allocate a data buffer of a default initial capacity.
|
DataBuffer |
DataBufferFactory.allocateBuffer(int initialCapacity)
Allocate a data buffer of the given initial capacity.
|
DataBuffer |
DataBuffer.capacity(int capacity)
Set the number of bytes that this buffer can contain.
|
DataBuffer |
DataBufferWrapper.capacity(int capacity) |
DataBuffer |
DataBufferWrapper.dataBuffer()
Return the wrapped delegate.
|
DataBuffer |
NettyDataBuffer.ensureCapacity(int capacity) |
default DataBuffer |
DataBuffer.ensureCapacity(int capacity)
Ensure that the current buffer has enough
writableByteCount()
to write the amount of data given as an argument. |
DataBuffer |
DataBufferWrapper.ensureCapacity(int capacity) |
DataBuffer |
DefaultDataBuffer.ensureCapacity(int length) |
DataBuffer |
DataBufferFactory.join(List<? extends DataBuffer> dataBuffers)
Return a new
DataBuffer composed of the dataBuffers elements joined together. |
DataBuffer |
NettyDataBufferFactory.join(List<? extends DataBuffer> dataBuffers)
Return a new
DataBuffer composed of the dataBuffers elements joined together. |
DataBuffer |
DataBuffer.read(byte[] destination)
Read this buffer's data into the specified destination, starting at the current
reading position of this buffer.
|
DataBuffer |
DataBufferWrapper.read(byte[] destination) |
DataBuffer |
DataBuffer.read(byte[] destination,
int offset,
int length)
Read at most
length bytes of this buffer into the specified destination,
starting at the current reading position of this buffer. |
DataBuffer |
DataBufferWrapper.read(byte[] destination,
int offset,
int length) |
DataBuffer |
DataBuffer.readPosition(int readPosition)
Set the position from which this buffer will read.
|
DataBuffer |
DataBufferWrapper.readPosition(int readPosition) |
DataBuffer |
LimitedDataBufferList.remove(int index) |
default DataBuffer |
DataBuffer.retainedSlice(int index,
int length)
Create a new
DataBuffer whose contents is a shared, retained subsequence of this
data buffer's content. |
DataBuffer |
DataBufferWrapper.retainedSlice(int index,
int length) |
DataBuffer |
LimitedDataBufferList.set(int index,
DataBuffer element) |
DataBuffer |
DataBuffer.slice(int index,
int length)
Create a new
DataBuffer whose contents is a shared subsequence of this
data buffer's content. |
DataBuffer |
DataBufferWrapper.slice(int index,
int length) |
DataBuffer |
DataBufferFactory.wrap(byte[] bytes)
Wrap the given
byte array in a DataBuffer . |
DataBuffer |
NettyDataBufferFactory.wrap(byte[] bytes) |
DataBuffer |
DataBufferFactory.wrap(ByteBuffer byteBuffer)
Wrap the given
ByteBuffer in a DataBuffer . |
DataBuffer |
DataBuffer.write(byte b)
Write a single byte into this buffer at the current writing position.
|
DataBuffer |
DataBufferWrapper.write(byte b) |
DataBuffer |
DataBuffer.write(byte[] source)
Write the given source into this buffer, starting at the current writing position
of this buffer.
|
DataBuffer |
DataBufferWrapper.write(byte[] source) |
DataBuffer |
DataBuffer.write(byte[] source,
int offset,
int length)
Write at most
length bytes of the given source into this buffer, starting
at the current writing position of this buffer. |
DataBuffer |
DataBufferWrapper.write(byte[] source,
int offset,
int length) |
DataBuffer |
DataBuffer.write(ByteBuffer... buffers)
Write one or more
ByteBuffer to this buffer, starting at the current
writing position. |
DataBuffer |
DataBufferWrapper.write(ByteBuffer... buffers) |
DataBuffer |
NettyDataBuffer.write(CharSequence charSequence,
Charset charset) |
default DataBuffer |
DataBuffer.write(CharSequence charSequence,
Charset charset)
Write the given
CharSequence using the given Charset ,
starting at the current writing position. |
DataBuffer |
DataBufferWrapper.write(CharSequence charSequence,
Charset charset) |
DataBuffer |
DataBuffer.write(DataBuffer... buffers)
Write one or more
DataBuffer s to this buffer, starting at the current
writing position. |
DataBuffer |
DataBufferWrapper.write(DataBuffer... buffers) |
DataBuffer |
DataBuffer.writePosition(int writePosition)
Set the position to which this buffer will write.
|
DataBuffer |
DataBufferWrapper.writePosition(int writePosition) |
Modifier and Type | Method and Description |
---|---|
static reactor.core.publisher.Mono<DataBuffer> |
DataBufferUtils.join(Publisher<? extends DataBuffer> dataBuffers)
Return a new
DataBuffer composed from joining together the given
dataBuffers elements. |
static reactor.core.publisher.Mono<DataBuffer> |
DataBufferUtils.join(Publisher<? extends DataBuffer> buffers,
int maxByteCount)
Variant of
DataBufferUtils.join(Publisher) that behaves the same way up until
the specified max number of bytes to buffer. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.read(Path path,
DataBufferFactory bufferFactory,
int bufferSize,
OpenOption... options)
Read bytes from the given file
Path into a Flux of DataBuffer s. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.read(Resource resource,
DataBufferFactory bufferFactory,
int bufferSize)
Read the given
Resource into a Flux of DataBuffer s. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.read(Resource resource,
long position,
DataBufferFactory bufferFactory,
int bufferSize)
Read the given
Resource into a Flux of DataBuffer s
starting at the given position. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.readAsynchronousFileChannel(Callable<AsynchronousFileChannel> channelSupplier,
DataBufferFactory bufferFactory,
int bufferSize)
Obtain a
AsynchronousFileChannel from the given supplier, and read
it into a Flux of DataBuffer s. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.readAsynchronousFileChannel(Callable<AsynchronousFileChannel> channelSupplier,
long position,
DataBufferFactory bufferFactory,
int bufferSize)
Obtain an
AsynchronousFileChannel from the given supplier, and
read it into a Flux of DataBuffer s, starting at the given
position. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.readByteChannel(Callable<ReadableByteChannel> channelSupplier,
DataBufferFactory bufferFactory,
int bufferSize)
|
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.readInputStream(Callable<InputStream> inputStreamSupplier,
DataBufferFactory bufferFactory,
int bufferSize)
|
static Consumer<DataBuffer> |
DataBufferUtils.releaseConsumer()
Return a consumer that calls
DataBufferUtils.release(DataBuffer) on all
passed data buffers. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.skipUntilByteCount(Publisher<? extends DataBuffer> publisher,
long maxByteCount)
Skip buffers from the given
Publisher until the total
byte count reaches
the given maximum byte count, or until the publisher is complete. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.takeUntilByteCount(Publisher<? extends DataBuffer> publisher,
long maxByteCount)
Relay buffers from the given
Publisher until the total
byte count reaches
the given maximum byte count, or until the publisher is complete. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.write(Publisher<? extends DataBuffer> source,
AsynchronousFileChannel channel,
long position)
Write the given stream of
DataBuffers to the given
AsynchronousFileChannel . |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.write(Publisher<DataBuffer> source,
AsynchronousFileChannel channel)
Write the given stream of
DataBuffers to the given
AsynchronousFileChannel . |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.write(Publisher<DataBuffer> source,
OutputStream outputStream)
Write the given stream of
DataBuffers to the given
OutputStream . |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.write(Publisher<DataBuffer> source,
WritableByteChannel channel)
Write the given stream of
DataBuffers to the given
WritableByteChannel . |
Modifier and Type | Method and Description |
---|---|
boolean |
LimitedDataBufferList.add(DataBuffer buffer) |
void |
LimitedDataBufferList.add(int index,
DataBuffer buffer) |
int |
DataBufferUtils.Matcher.match(DataBuffer dataBuffer)
Find the first matching delimiter and return the index of the last
byte of the delimiter, or
-1 if not found. |
static boolean |
DataBufferUtils.release(DataBuffer dataBuffer)
Release the given data buffer, if it is a
PooledDataBuffer and
has been allocated. |
DataBuffer |
LimitedDataBufferList.set(int index,
DataBuffer element) |
static io.netty.buffer.ByteBuf |
NettyDataBufferFactory.toByteBuf(DataBuffer buffer)
Return the given Netty
DataBuffer as a ByteBuf . |
NettyDataBuffer |
NettyDataBuffer.write(DataBuffer... buffers) |
DataBuffer |
DataBuffer.write(DataBuffer... buffers)
Write one or more
DataBuffer s to this buffer, starting at the current
writing position. |
DataBuffer |
DataBufferWrapper.write(DataBuffer... buffers) |
DefaultDataBuffer |
DefaultDataBuffer.write(DataBuffer... buffers) |
Modifier and Type | Method and Description |
---|---|
boolean |
LimitedDataBufferList.addAll(Collection<? extends DataBuffer> collection) |
boolean |
LimitedDataBufferList.addAll(int index,
Collection<? extends DataBuffer> collection) |
DataBuffer |
DataBufferFactory.join(List<? extends DataBuffer> dataBuffers)
Return a new
DataBuffer composed of the dataBuffers elements joined together. |
DefaultDataBuffer |
DefaultDataBufferFactory.join(List<? extends DataBuffer> dataBuffers)
Return a new
DataBuffer composed of the dataBuffers elements joined together. |
DataBuffer |
NettyDataBufferFactory.join(List<? extends DataBuffer> dataBuffers)
Return a new
DataBuffer composed of the dataBuffers elements joined together. |
static reactor.core.publisher.Mono<DataBuffer> |
DataBufferUtils.join(Publisher<? extends DataBuffer> dataBuffers)
Return a new
DataBuffer composed from joining together the given
dataBuffers elements. |
static reactor.core.publisher.Mono<DataBuffer> |
DataBufferUtils.join(Publisher<? extends DataBuffer> buffers,
int maxByteCount)
Variant of
DataBufferUtils.join(Publisher) that behaves the same way up until
the specified max number of bytes to buffer. |
boolean |
LimitedDataBufferList.removeIf(Predicate<? super DataBuffer> filter) |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.skipUntilByteCount(Publisher<? extends DataBuffer> publisher,
long maxByteCount)
Skip buffers from the given
Publisher until the total
byte count reaches
the given maximum byte count, or until the publisher is complete. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.takeUntilByteCount(Publisher<? extends DataBuffer> publisher,
long maxByteCount)
Relay buffers from the given
Publisher until the total
byte count reaches
the given maximum byte count, or until the publisher is complete. |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.write(Publisher<? extends DataBuffer> source,
AsynchronousFileChannel channel,
long position)
Write the given stream of
DataBuffers to the given
AsynchronousFileChannel . |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.write(Publisher<DataBuffer> source,
AsynchronousFileChannel channel)
Write the given stream of
DataBuffers to the given
AsynchronousFileChannel . |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.write(Publisher<DataBuffer> source,
OutputStream outputStream)
Write the given stream of
DataBuffers to the given
OutputStream . |
static reactor.core.publisher.Mono<Void> |
DataBufferUtils.write(Publisher<DataBuffer> source,
Path destination,
OpenOption... options)
Write the given stream of
DataBuffers to the given
file Path . |
static reactor.core.publisher.Flux<DataBuffer> |
DataBufferUtils.write(Publisher<DataBuffer> source,
WritableByteChannel channel)
Write the given stream of
DataBuffers to the given
WritableByteChannel . |
Constructor and Description |
---|
DataBufferWrapper(DataBuffer delegate)
Create a new
DataBufferWrapper that wraps the given buffer. |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
ReactiveHttpInputMessage.getBody()
Return the body of the message as a
Publisher . |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
ReactiveHttpOutputMessage.writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>> body)
Use the given
Publisher of Publishers to write the body
of the HttpOutputMessage to the underlying HTTP layer, flushing after
each Publisher<DataBuffer> . |
reactor.core.publisher.Mono<Void> |
ReactiveHttpOutputMessage.writeWith(Publisher<? extends DataBuffer> body)
Use the given
Publisher to write the body of the message to the
underlying HTTP layer. |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
ClientHttpResponseDecorator.getBody() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
ClientHttpRequestDecorator.writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>> body) |
reactor.core.publisher.Mono<Void> |
ClientHttpRequestDecorator.writeWith(Publisher<? extends DataBuffer> body) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
Jackson2CborEncoder.encode(Publisher<?> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<Object> |
Jackson2CborDecoder.decode(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
AbstractJackson2Encoder.encodeValue(Object value,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
DataBuffer |
KotlinSerializationJsonEncoder.encodeValue(Object value,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
AbstractJackson2Encoder.encode(Publisher<?> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<DataBuffer> |
KotlinSerializationJsonEncoder.encode(Publisher<?> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
protected reactor.core.publisher.Flux<DataBuffer> |
Jackson2JsonDecoder.processInput(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
protected reactor.core.publisher.Flux<DataBuffer> |
AbstractJackson2Decoder.processInput(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints)
Process the input publisher into a flux.
|
Modifier and Type | Method and Description |
---|---|
Object |
AbstractJackson2Decoder.decode(DataBuffer dataBuffer,
ResolvableType targetType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<Object> |
KotlinSerializationJsonDecoder.decode(Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<Object> |
AbstractJackson2Decoder.decode(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Object> |
KotlinSerializationJsonDecoder.decodeToMono(Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Object> |
AbstractJackson2Decoder.decodeToMono(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
protected reactor.core.publisher.Flux<DataBuffer> |
Jackson2JsonDecoder.processInput(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
protected reactor.core.publisher.Flux<DataBuffer> |
AbstractJackson2Decoder.processInput(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints)
Process the input publisher into a flux.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
Part.content()
Return the content for this part.
|
protected reactor.core.publisher.Mono<DataBuffer> |
MultipartWriterSupport.generateBoundaryLine(byte[] boundary,
DataBufferFactory bufferFactory) |
protected reactor.core.publisher.Mono<DataBuffer> |
MultipartWriterSupport.generateLastLine(byte[] boundary,
DataBufferFactory bufferFactory) |
protected reactor.core.publisher.Mono<DataBuffer> |
MultipartWriterSupport.generateNewLine(DataBufferFactory bufferFactory) |
protected reactor.core.publisher.Mono<DataBuffer> |
MultipartWriterSupport.generatePartHeaders(HttpHeaders headers,
DataBufferFactory bufferFactory) |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
ProtobufEncoder.encodeValue(com.google.protobuf.Message message,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
ProtobufEncoder.encode(Publisher<? extends com.google.protobuf.Message> inputStream,
DataBufferFactory bufferFactory,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
com.google.protobuf.Message |
ProtobufDecoder.decode(DataBuffer dataBuffer,
ResolvableType targetType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<com.google.protobuf.Message> |
ProtobufDecoder.decode(Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Mono<com.google.protobuf.Message> |
ProtobufDecoder.decodeToMono(Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
Jaxb2XmlEncoder.encodeValue(Object value,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
protected reactor.core.publisher.Flux<DataBuffer> |
Jaxb2XmlEncoder.encode(Object value,
DataBufferFactory bufferFactory,
ResolvableType valueType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
Object |
Jaxb2XmlDecoder.decode(DataBuffer dataBuffer,
ResolvableType targetType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<XMLEvent> |
XmlEventDecoder.decode(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Flux<Object> |
Jaxb2XmlDecoder.decode(Publisher<DataBuffer> inputStream,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
reactor.core.publisher.Mono<Object> |
Jaxb2XmlDecoder.decodeToMono(Publisher<DataBuffer> input,
ResolvableType elementType,
MimeType mimeType,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
protected abstract Processor<? super Publisher<? extends DataBuffer>,Void> |
AbstractListenerServerHttpResponse.createBodyFlushProcessor()
Abstract template method to create a
Processor<Publisher<DataBuffer>, Void>
that will write the response body with flushes to the underlying output. |
reactor.core.publisher.Flux<DataBuffer> |
ServerHttpRequestDecorator.getBody() |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractServerHttpResponse.touchDataBuffer(DataBuffer buffer)
Allow sub-classes to associate a hint with the data buffer if it is a
pooled buffer and supports leak tracking.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
HttpHeadResponseDecorator.writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>> body)
Invoke
ServerHttpResponseDecorator.setComplete() without writing. |
reactor.core.publisher.Mono<Void> |
AbstractServerHttpResponse.writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>> body) |
reactor.core.publisher.Mono<Void> |
ServerHttpResponseDecorator.writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>> body) |
protected reactor.core.publisher.Mono<Void> |
AbstractListenerServerHttpResponse.writeAndFlushWithInternal(Publisher<? extends Publisher<? extends DataBuffer>> body) |
protected abstract reactor.core.publisher.Mono<Void> |
AbstractServerHttpResponse.writeAndFlushWithInternal(Publisher<? extends Publisher<? extends DataBuffer>> body)
Write to the underlying the response, and flush after each
Publisher<DataBuffer> . |
reactor.core.publisher.Mono<Void> |
HttpHeadResponseDecorator.writeWith(Publisher<? extends DataBuffer> body)
Consume and release the body without writing.
|
reactor.core.publisher.Mono<Void> |
AbstractServerHttpResponse.writeWith(Publisher<? extends DataBuffer> body) |
reactor.core.publisher.Mono<Void> |
ServerHttpResponseDecorator.writeWith(Publisher<? extends DataBuffer> body) |
protected reactor.core.publisher.Mono<Void> |
AbstractListenerServerHttpResponse.writeWithInternal(Publisher<? extends DataBuffer> body) |
protected abstract reactor.core.publisher.Mono<Void> |
AbstractServerHttpResponse.writeWithInternal(Publisher<? extends DataBuffer> body)
Write to the underlying the response.
|
Modifier and Type | Method and Description |
---|---|
protected abstract reactor.core.publisher.Mono<Void> |
AbstractEncoderMethodReturnValueHandler.handleEncodedContent(reactor.core.publisher.Flux<DataBuffer> encodedContent,
MethodParameter returnType,
Message<?> message)
Subclasses implement this method to handle encoded values in some way
such as creating and sending messages.
|
Modifier and Type | Method and Description |
---|---|
static DataBuffer |
PayloadUtils.retainDataAndReleasePayload(Payload payload,
DataBufferFactory bufferFactory)
Use this method to slice, retain and wrap the data portion of the
Payload , and also to release the Payload . |
Modifier and Type | Method and Description |
---|---|
static Payload |
PayloadUtils.createPayload(DataBuffer data)
Create a Payload with data only.
|
static Payload |
PayloadUtils.createPayload(DataBuffer data,
DataBuffer metadata)
Create a Payload from the given metadata and data.
|
Modifier and Type | Method and Description |
---|---|
protected reactor.core.publisher.Mono<Void> |
RSocketPayloadReturnValueHandler.handleEncodedContent(reactor.core.publisher.Flux<DataBuffer> encodedContent,
MethodParameter returnType,
Message<?> message) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
MockClientHttpResponse.getBody() |
reactor.core.publisher.Flux<DataBuffer> |
MockClientHttpRequest.getBody()
Return the request body, or an error stream if the body was never set
or when
MockClientHttpRequest.setWriteHandler(java.util.function.Function<reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer>, reactor.core.publisher.Mono<java.lang.Void>>) is configured. |
Modifier and Type | Method and Description |
---|---|
void |
MockClientHttpResponse.setBody(Publisher<DataBuffer> body) |
void |
MockClientHttpRequest.setWriteHandler(Function<reactor.core.publisher.Flux<DataBuffer>,reactor.core.publisher.Mono<Void>> writeHandler)
Configure a custom handler for writing the request body.
|
reactor.core.publisher.Mono<Void> |
MockClientHttpRequest.writeAndFlushWith(Publisher<? extends Publisher<? extends DataBuffer>> body) |
reactor.core.publisher.Mono<Void> |
MockClientHttpRequest.writeWith(Publisher<? extends DataBuffer> body) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Flux<DataBuffer> |
MockServerHttpResponse.getBody()
Return the response body or an error stream if the body was not set.
|
reactor.core.publisher.Flux<DataBuffer> |
MockServerHttpRequest.getBody() |
Modifier and Type | Method and Description |
---|---|
MockServerHttpRequest |
MockServerHttpRequest.BodyBuilder.body(Publisher<? extends DataBuffer> body)
Set the body of the request and build it.
|
void |
MockServerHttpResponse.setWriteHandler(Function<reactor.core.publisher.Flux<DataBuffer>,reactor.core.publisher.Mono<Void>> writeHandler)
Configure a custom handler to consume the response body.
|
protected reactor.core.publisher.Mono<Void> |
MockServerHttpResponse.writeAndFlushWithInternal(Publisher<? extends Publisher<? extends DataBuffer>> body) |
protected reactor.core.publisher.Mono<Void> |
MockServerHttpResponse.writeWithInternal(Publisher<? extends DataBuffer> body) |
Modifier and Type | Method and Description |
---|---|
static <T extends Publisher<DataBuffer>> |
BodyInserters.fromDataBuffers(T publisher)
Inserter to write the given
Publisher<DataBuffer> to the body. |
Modifier and Type | Method and Description |
---|---|
static BodyExtractor<reactor.core.publisher.Flux<DataBuffer>,ReactiveHttpInputMessage> |
BodyExtractors.toDataBuffers()
Extractor that returns the raw
DataBuffers . |
Modifier and Type | Method and Description |
---|---|
ClientResponse.Builder |
ClientResponse.Builder.body(reactor.core.publisher.Flux<DataBuffer> body)
Set the body of the response.
|
ClientResponse.Builder |
ClientResponse.Builder.body(Function<reactor.core.publisher.Flux<DataBuffer>,reactor.core.publisher.Flux<DataBuffer>> transformer)
Transform the response body, if set in the builder.
|
ClientResponse.Builder |
ClientResponse.Builder.body(Function<reactor.core.publisher.Flux<DataBuffer>,reactor.core.publisher.Flux<DataBuffer>> transformer)
Transform the response body, if set in the builder.
|
Modifier and Type | Method and Description |
---|---|
ServerRequest.Builder |
ServerRequest.Builder.body(reactor.core.publisher.Flux<DataBuffer> body)
Set the body of the request.
|
Modifier and Type | Method and Description |
---|---|
DataBuffer |
WebSocketMessage.getPayload()
Return the message payload.
|
Modifier and Type | Method and Description |
---|---|
WebSocketMessage |
WebSocketSession.binaryMessage(Function<DataBufferFactory,DataBuffer> payloadFactory)
Factory method to create a binary WebSocketMessage using the
WebSocketSession.bufferFactory() for the session. |
WebSocketMessage |
WebSocketSession.pingMessage(Function<DataBufferFactory,DataBuffer> payloadFactory)
Factory method to create a ping WebSocketMessage using the
WebSocketSession.bufferFactory() for the session. |
WebSocketMessage |
WebSocketSession.pongMessage(Function<DataBufferFactory,DataBuffer> payloadFactory)
Factory method to create a pong WebSocketMessage using the
WebSocketSession.bufferFactory() for the session. |
Constructor and Description |
---|
WebSocketMessage(WebSocketMessage.Type type,
DataBuffer payload)
Constructor for a WebSocketMessage.
|
WebSocketMessage(WebSocketMessage.Type type,
DataBuffer payload,
Object nativeMessage)
Constructor for an inbound message with access to the underlying message.
|
Modifier and Type | Method and Description |
---|---|
WebSocketMessage |
AbstractWebSocketSession.binaryMessage(Function<DataBufferFactory,DataBuffer> payloadFactory) |
WebSocketMessage |
AbstractWebSocketSession.pingMessage(Function<DataBufferFactory,DataBuffer> payloadFactory) |
WebSocketMessage |
AbstractWebSocketSession.pongMessage(Function<DataBufferFactory,DataBuffer> payloadFactory) |