类 AbstractListenerServerHttpResponse

java.lang.Object
cn.taketoday.http.server.reactive.AbstractServerHttpResponse
cn.taketoday.http.server.reactive.AbstractListenerServerHttpResponse
所有已实现的接口:
HttpMessage, ReactiveHttpOutputMessage, ServerHttpResponse
直接已知子类:
ServletServerHttpResponse, UndertowServerHttpResponse

public abstract class AbstractListenerServerHttpResponse extends AbstractServerHttpResponse
Abstract base class for listener-based server responses, e.g. Servlet 3.1 and Undertow.
从以下版本开始:
4.0
作者:
Arjen Poutsma
  • 字段详细资料

  • 构造器详细资料

    • 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)
      从类复制的说明: 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 cn.taketoday.core.io.buffer.DataBuffer>> body)
      从类复制的说明: AbstractServerHttpResponse
      Write to the underlying the response, and flush after each Publisher<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 a Processor<Publisher<DataBuffer>, Void> that will write the response body with flushes to the underlying output. Called from writeAndFlushWithInternal(Publisher).