Class VertxServerHttpResponse

  • All Implemented Interfaces:
    org.springframework.http.HttpMessage, org.springframework.http.ReactiveHttpOutputMessage, org.springframework.http.server.reactive.ServerHttpResponse, org.springframework.http.ZeroCopyHttpOutputMessage

    public class VertxServerHttpResponse
    extends org.springframework.http.server.reactive.AbstractServerHttpResponse
    implements org.springframework.http.ZeroCopyHttpOutputMessage
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void applyCookies()  
      protected void applyHeaders()  
      protected void applyStatusCode()  
      <T> T getNativeResponse()  
      protected reactor.core.publisher.Mono<Void> writeAndFlushWithInternal​(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>> chunks)  
      reactor.core.publisher.Mono<Void> writeWith​(Path file, long position, long count)  
      protected reactor.core.publisher.Mono<Void> writeWithInternal​(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer> chunks)  
      • Methods inherited from class org.springframework.http.server.reactive.AbstractServerHttpResponse

        addCookie, beforeCommit, bufferFactory, doCommit, doCommit, getCookies, getHeaders, getRawStatusCode, getStatusCode, getStatusCodeValue, isCommitted, setComplete, setRawStatusCode, setStatusCode, setStatusCodeValue, touchDataBuffer, writeAndFlushWith, writeWith
      • Methods inherited from interface org.springframework.http.HttpMessage

        getHeaders
      • Methods inherited from interface org.springframework.http.ReactiveHttpOutputMessage

        beforeCommit, bufferFactory, isCommitted, setComplete, writeAndFlushWith, writeWith
      • Methods inherited from interface org.springframework.http.ZeroCopyHttpOutputMessage

        writeWith
    • Constructor Detail

      • VertxServerHttpResponse

        public VertxServerHttpResponse​(io.vertx.ext.web.RoutingContext context,
                                       BufferConverter bufferConverter)
    • Method Detail

      • getNativeResponse

        public <T> T getNativeResponse()
        Specified by:
        getNativeResponse in class org.springframework.http.server.reactive.AbstractServerHttpResponse
      • writeWith

        public reactor.core.publisher.Mono<Void> writeWith​(Path file,
                                                           long position,
                                                           long count)
        Specified by:
        writeWith in interface org.springframework.http.ZeroCopyHttpOutputMessage
      • writeWithInternal

        protected reactor.core.publisher.Mono<Void> writeWithInternal​(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer> chunks)
        Specified by:
        writeWithInternal in class org.springframework.http.server.reactive.AbstractServerHttpResponse
      • writeAndFlushWithInternal

        protected reactor.core.publisher.Mono<Void> writeAndFlushWithInternal​(org.reactivestreams.Publisher<? extends org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>> chunks)
        Specified by:
        writeAndFlushWithInternal in class org.springframework.http.server.reactive.AbstractServerHttpResponse
      • applyStatusCode

        protected void applyStatusCode()
        Specified by:
        applyStatusCode in class org.springframework.http.server.reactive.AbstractServerHttpResponse
      • applyHeaders

        protected void applyHeaders()
        Specified by:
        applyHeaders in class org.springframework.http.server.reactive.AbstractServerHttpResponse
      • applyCookies

        protected void applyCookies()
        Specified by:
        applyCookies in class org.springframework.http.server.reactive.AbstractServerHttpResponse