类 MultipartHttpMessageWriter.MultipartHttpOutputMessage

java.lang.Object
cn.taketoday.http.codec.multipart.MultipartHttpMessageWriter.MultipartHttpOutputMessage
所有已实现的接口:
HttpMessage, ReactiveHttpOutputMessage
封闭类:
MultipartHttpMessageWriter

private class MultipartHttpMessageWriter.MultipartHttpOutputMessage extends Object implements ReactiveHttpOutputMessage
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer>
     
    private final cn.taketoday.core.io.buffer.DataBufferFactory
     
    private final AtomicBoolean
     
    private final HttpHeaders
     
  • 构造器概要

    构造器
    构造器
    说明
    MultipartHttpOutputMessage(cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    beforeCommit(Supplier<? extends reactor.core.publisher.Mono<Void>> action)
    Register an action to apply just before the HttpOutputMessage is committed.
    cn.taketoday.core.io.buffer.DataBufferFactory
    Return a DataBufferFactory that can be used to create the body.
    reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer>
     
    Return the headers of this message.
    boolean
    Whether the HttpOutputMessage is committed.
    reactor.core.publisher.Mono<Void>
    Indicate that message handling is complete, allowing for any cleanup or end-of-processing tasks to be performed such as applying header changes made via HttpMessage.getHeaders() to the underlying HTTP message (if not applied already).
    reactor.core.publisher.Mono<Void>
    writeAndFlushWith(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.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>
    writeWith(org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer> body)
    Use the given Publisher to write the body of the message to the underlying HTTP layer.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • bufferFactory

      private final cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory
    • headers

      private final HttpHeaders headers
    • committed

      private final AtomicBoolean committed
    • body

      @Nullable private reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> body
  • 构造器详细资料

    • MultipartHttpOutputMessage

      public MultipartHttpOutputMessage(cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory)
  • 方法详细资料

    • getHeaders

      public HttpHeaders getHeaders()
      从接口复制的说明: HttpMessage
      Return the headers of this message.
      指定者:
      getHeaders 在接口中 HttpMessage
      返回:
      a corresponding HttpHeaders object (never null)
    • bufferFactory

      public cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory()
      从接口复制的说明: ReactiveHttpOutputMessage
      Return a DataBufferFactory that can be used to create the body.
      指定者:
      bufferFactory 在接口中 ReactiveHttpOutputMessage
      返回:
      a buffer factory
      另请参阅:
    • beforeCommit

      public void beforeCommit(Supplier<? extends reactor.core.publisher.Mono<Void>> action)
      从接口复制的说明: ReactiveHttpOutputMessage
      Register an action to apply just before the HttpOutputMessage is committed.

      Note: the supplied action must be properly deferred, e.g. via Mono.defer(java.util.function.Supplier<? extends reactor.core.publisher.Mono<? extends T>>) or Mono.fromRunnable(java.lang.Runnable), to ensure it's executed in the right order, relative to other actions.

      指定者:
      beforeCommit 在接口中 ReactiveHttpOutputMessage
      参数:
      action - the action to apply
    • isCommitted

      public boolean isCommitted()
      从接口复制的说明: ReactiveHttpOutputMessage
      Whether the HttpOutputMessage is committed.
      指定者:
      isCommitted 在接口中 ReactiveHttpOutputMessage
    • writeWith

      public reactor.core.publisher.Mono<Void> writeWith(org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer> body)
      从接口复制的说明: ReactiveHttpOutputMessage
      Use the given Publisher to write the body of the message to the underlying HTTP layer.
      指定者:
      writeWith 在接口中 ReactiveHttpOutputMessage
      参数:
      body - the body content publisher
      返回:
      a Mono that indicates completion or error
    • writeAndFlushWith

      public reactor.core.publisher.Mono<Void> writeAndFlushWith(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends cn.taketoday.core.io.buffer.DataBuffer>> body)
      从接口复制的说明: ReactiveHttpOutputMessage
      Use the given Publisher of Publishers to write the body of the HttpOutputMessage to the underlying HTTP layer, flushing after each Publisher<DataBuffer>.
      指定者:
      writeAndFlushWith 在接口中 ReactiveHttpOutputMessage
      参数:
      body - the body content publisher
      返回:
      a Mono that indicates completion or error
    • getBody

      public reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> getBody()
    • setComplete

      public reactor.core.publisher.Mono<Void> setComplete()
      从接口复制的说明: ReactiveHttpOutputMessage
      Indicate that message handling is complete, allowing for any cleanup or end-of-processing tasks to be performed such as applying header changes made via HttpMessage.getHeaders() to the underlying HTTP message (if not applied already).

      This method should be automatically invoked at the end of message processing so typically applications should not have to invoke it. If invoked multiple times it should have no side effects.

      指定者:
      setComplete 在接口中 ReactiveHttpOutputMessage
      返回:
      a Mono that indicates completion or error