类 AbstractListenerServerHttpResponse
java.lang.Object
cn.taketoday.http.server.reactive.AbstractServerHttpResponse
cn.taketoday.http.server.reactive.AbstractListenerServerHttpResponse
- 所有已实现的接口:
HttpMessage,ReactiveHttpOutputMessage,ServerHttpResponse
Abstract base class for listener-based server responses, e.g. Servlet 3.1
and Undertow.
- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma
-
字段概要
字段 -
构造器概要
构造器构造器说明AbstractListenerServerHttpResponse(cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) AbstractListenerServerHttpResponse(cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory, HttpHeaders headers) -
方法概要
修饰符和类型方法说明protected abstract org.reactivestreams.Processor<? super org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer>,Void> Abstract template method to create aProcessor<Publisher<DataBuffer>, Void>that will write the response body with flushes to the underlying output.protected final reactor.core.publisher.Mono<Void>writeAndFlushWithInternal(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer>> body) Write to the underlying the response, and flush after eachPublisher<DataBuffer>.protected final reactor.core.publisher.Mono<Void>writeWithInternal(org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer> body) Write to the underlying the response.从类继承的方法 cn.taketoday.http.server.reactive.AbstractServerHttpResponse
addCookie, applyCookies, applyHeaders, applyStatusCode, beforeCommit, bufferFactory, doCommit, doCommit, getCookies, getHeaders, getNativeResponse, getRawStatusCode, getStatusCode, isCommitted, setComplete, setRawStatusCode, setStatusCode, touchDataBuffer, writeAndFlushWith, writeWith
-
字段详细资料
-
writeCalled
-
-
构造器详细资料
-
AbstractListenerServerHttpResponse
public AbstractListenerServerHttpResponse(cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) -
AbstractListenerServerHttpResponse
public AbstractListenerServerHttpResponse(cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory, HttpHeaders headers)
-
-
方法详细资料
-
writeWithInternal
protected final reactor.core.publisher.Mono<Void> writeWithInternal(org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer> body) 从类复制的说明:AbstractServerHttpResponseWrite 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 cn.taketoday.core.io.buffer.DataBuffer>> body) 从类复制的说明:AbstractServerHttpResponseWrite 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 cn.taketoday.core.io.buffer.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).
-