类 CachedBodyOutputMessage

java.lang.Object
org.apache.shenyu.plugin.base.support.CachedBodyOutputMessage
所有已实现的接口:
org.springframework.http.HttpMessage, org.springframework.http.ReactiveHttpOutputMessage

public class CachedBodyOutputMessage extends Object implements org.springframework.http.ReactiveHttpOutputMessage
Implementation of ClientHttpRequest that saves body as a field.
另请参阅:
  • 构造器概要

    构造器
    构造器
    说明
    CachedBodyOutputMessage(org.springframework.web.server.ServerWebExchange exchange, org.springframework.http.HttpHeaders httpHeaders)
    Instantiates a new Cached body output message.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    beforeCommit(Supplier<? extends reactor.core.publisher.Mono<Void>> action)
     
    org.springframework.core.io.buffer.DataBufferFactory
     
    reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer>
    Return the request body, or an error stream if the body was never set or when.
    Is cached.
    org.springframework.http.HttpHeaders
     
    boolean
     
    reactor.core.publisher.Mono<Void>
     
    reactor.core.publisher.Mono<Void>
    writeAndFlushWith(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>> body)
     
    reactor.core.publisher.Mono<Void>
    writeWith(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer> body)
    writeWith.

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • CachedBodyOutputMessage

      public CachedBodyOutputMessage(org.springframework.web.server.ServerWebExchange exchange, org.springframework.http.HttpHeaders httpHeaders)
      Instantiates a new Cached body output message.
      参数:
      exchange - the exchange
      httpHeaders - the http headers
  • 方法详细资料

    • beforeCommit

      public void beforeCommit(Supplier<? extends reactor.core.publisher.Mono<Void>> action)
      指定者:
      beforeCommit 在接口中 org.springframework.http.ReactiveHttpOutputMessage
    • isCommitted

      public boolean isCommitted()
      指定者:
      isCommitted 在接口中 org.springframework.http.ReactiveHttpOutputMessage
    • getHeaders

      public org.springframework.http.HttpHeaders getHeaders()
      指定者:
      getHeaders 在接口中 org.springframework.http.HttpMessage
    • bufferFactory

      public org.springframework.core.io.buffer.DataBufferFactory bufferFactory()
      指定者:
      bufferFactory 在接口中 org.springframework.http.ReactiveHttpOutputMessage
    • getCache

      public Boolean getCache()
      Is cached.
      返回:
      boolean
    • getBody

      public reactor.core.publisher.Flux<org.springframework.core.io.buffer.DataBuffer> getBody()
      Return the request body, or an error stream if the body was never set or when.
      返回:
      body as Flux
    • writeWith

      public reactor.core.publisher.Mono<Void> writeWith(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer> body)
      writeWith.
      指定者:
      writeWith 在接口中 org.springframework.http.ReactiveHttpOutputMessage
      参数:
      body - writeWith body
      返回:
      Mono
    • writeAndFlushWith

      public reactor.core.publisher.Mono<Void> writeAndFlushWith(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>> body)
      指定者:
      writeAndFlushWith 在接口中 org.springframework.http.ReactiveHttpOutputMessage
    • setComplete

      public reactor.core.publisher.Mono<Void> setComplete()
      指定者:
      setComplete 在接口中 org.springframework.http.ReactiveHttpOutputMessage