类 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. -
方法概要
修饰符和类型方法说明voidbeforeCommit(Supplier<? extends reactor.core.publisher.Mono<Void>> action) org.springframework.core.io.buffer.DataBufferFactoryreactor.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.getCache()Is cached.org.springframework.http.HttpHeadersbooleanreactor.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.
-
构造器详细资料
-
CachedBodyOutputMessage
public CachedBodyOutputMessage(org.springframework.web.server.ServerWebExchange exchange, org.springframework.http.HttpHeaders httpHeaders) Instantiates a new Cached body output message.- 参数:
exchange- the exchangehttpHeaders- the http headers
-
-
方法详细资料
-
beforeCommit
- 指定者:
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
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
- 指定者:
setComplete在接口中org.springframework.http.ReactiveHttpOutputMessage
-