类 AbstractListenerServerHttpResponse
- java.lang.Object
- org.springframework.http.server.reactive.AbstractServerHttpResponse
- org.springframework.http.server.reactive.AbstractListenerServerHttpResponse
public abstract class AbstractListenerServerHttpResponse extends AbstractServerHttpResponse
Abstract base class for listener-based server responses, e.g. Servlet 3.1 and Undertow.- 从以下版本开始:
- 5.0
- 作者:
- Arjen Poutsma
字段概要
从类继承的字段 org.springframework.http.server.reactive.AbstractServerHttpResponse
logger
构造器概要
构造器 构造器 说明 AbstractListenerServerHttpResponse(DataBufferFactory dataBufferFactory)
AbstractListenerServerHttpResponse(DataBufferFactory dataBufferFactory, HttpHeaders headers)
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract org.reactivestreams.Processor<? super org.reactivestreams.Publisher<? extends DataBuffer>,Void>
createBodyFlushProcessor()
Abstract template method to create aProcessor<Publisher<DataBuffer>, Void>
that will write the response body with flushes to the underlying output.protected reactor.core.publisher.Mono<Void>
writeAndFlushWithInternal(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends DataBuffer>> body)
Write to the underlying the response, and flush after eachPublisher<DataBuffer>
.protected reactor.core.publisher.Mono<Void>
writeWithInternal(org.reactivestreams.Publisher<? extends DataBuffer> body)
Write to the underlying the response.从类继承的方法 org.springframework.http.server.reactive.AbstractServerHttpResponse
addCookie, applyCookies, applyHeaders, applyStatusCode, beforeCommit, bufferFactory, doCommit, doCommit, getCookies, getHeaders, getNativeResponse, getRawStatusCode, getStatusCode, getStatusCodeValue, isCommitted, setComplete, setRawStatusCode, setStatusCode, setStatusCodeValue, writeAndFlushWith, writeWith
构造器详细资料
AbstractListenerServerHttpResponse
public AbstractListenerServerHttpResponse(DataBufferFactory dataBufferFactory)
AbstractListenerServerHttpResponse
public AbstractListenerServerHttpResponse(DataBufferFactory dataBufferFactory, HttpHeaders headers)
方法详细资料
writeWithInternal
protected final reactor.core.publisher.Mono<Void> writeWithInternal(org.reactivestreams.Publisher<? extends DataBuffer> body)
从类复制的说明:AbstractServerHttpResponse
Write to the underlying the response.- 指定者:
writeWithInternal
在类中AbstractServerHttpResponse
- 参数:
body
- the publisher to write with
writeAndFlushWithInternal
protected final reactor.core.publisher.Mono<Void> writeAndFlushWithInternal(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends DataBuffer>> body)
从类复制的说明:AbstractServerHttpResponse
Write to the underlying the response, and flush after eachPublisher<DataBuffer>
.- 指定者:
writeAndFlushWithInternal
在类中AbstractServerHttpResponse
- 参数:
body
- the publisher to write and flush with
createBodyFlushProcessor
protected abstract org.reactivestreams.Processor<? super org.reactivestreams.Publisher<? extends DataBuffer>,Void> createBodyFlushProcessor()
Abstract template method to create aProcessor<Publisher<DataBuffer>, Void>
that will write the response body with flushes to the underlying output. Called fromwriteAndFlushWithInternal(Publisher)
.