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

    Constructors
    Constructor
    Description
    ModifiedServerHttpResponse(org.springframework.web.server.ServerWebExchange exchange, ModifyResponseBodyGatewayFilterFactory.Config config)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class org.springframework.http.server.reactive.ServerHttpResponseDecorator

    addCookie, beforeCommit, bufferFactory, getCookies, getDelegate, getHeaders, getNativeResponse, getStatusCode, isCommitted, setComplete, setRawStatusCode, setStatusCode, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • writeWith

      public reactor.core.publisher.Mono<Void> writeWith(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer> body)
      Specified by:
      writeWith in interface org.springframework.http.ReactiveHttpOutputMessage
      Overrides:
      writeWith in class org.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:
      writeAndFlushWith in interface org.springframework.http.ReactiveHttpOutputMessage
      Overrides:
      writeAndFlushWith in class org.springframework.http.server.reactive.ServerHttpResponseDecorator