Class ModifyResponseBodyGatewayFilterFactory.ModifiedServerHttpResponse
java.lang.Object
org.springframework.http.server.reactive.ServerHttpResponseDecorator
org.springframework.cloud.gateway.filter.factory.rewrite.ModifyResponseBodyGatewayFilterFactory.ModifiedServerHttpResponse
- All Implemented Interfaces:
org.springframework.http.HttpMessage, org.springframework.http.ReactiveHttpOutputMessage, org.springframework.http.server.reactive.ServerHttpResponse
- Enclosing class:
ModifyResponseBodyGatewayFilterFactory
protected class ModifyResponseBodyGatewayFilterFactory.ModifiedServerHttpResponse
extends org.springframework.http.server.reactive.ServerHttpResponseDecorator
-
Constructor Summary
ConstructorsConstructorDescriptionModifiedServerHttpResponse(org.springframework.web.server.ServerWebExchange exchange, ModifyResponseBodyGatewayFilterFactory.Config config) -
Method Summary
Modifier and TypeMethodDescriptionreactor.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) Methods inherited from class org.springframework.http.server.reactive.ServerHttpResponseDecorator
addCookie, beforeCommit, bufferFactory, getCookies, getDelegate, getHeaders, getNativeResponse, getStatusCode, isCommitted, setComplete, setRawStatusCode, setStatusCode, toString
-
Constructor Details
-
ModifiedServerHttpResponse
public ModifiedServerHttpResponse(org.springframework.web.server.ServerWebExchange exchange, ModifyResponseBodyGatewayFilterFactory.Config config)
-
-
Method Details
-
writeWith
public reactor.core.publisher.Mono<Void> writeWith(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer> body) - Specified by:
writeWithin interfaceorg.springframework.http.ReactiveHttpOutputMessage- Overrides:
writeWithin classorg.springframework.http.server.reactive.ServerHttpResponseDecorator
-
writeAndFlushWith
public reactor.core.publisher.Mono<Void> writeAndFlushWith(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>> body) - Specified by:
writeAndFlushWithin interfaceorg.springframework.http.ReactiveHttpOutputMessage- Overrides:
writeAndFlushWithin classorg.springframework.http.server.reactive.ServerHttpResponseDecorator
-