org.springframework.http.server.reactive

Class ReactorHttpHandlerAdapter

  • java.lang.Object
    • org.springframework.http.server.reactive.ReactorHttpHandlerAdapter
  • All Implemented Interfaces:
    java.util.function.BiFunction<reactor.netty.http.server.HttpServerRequest,reactor.netty.http.server.HttpServerResponse,reactor.core.publisher.Mono<java.lang.Void>>


    public class ReactorHttpHandlerAdapter
    extends java.lang.Object
    implements java.util.function.BiFunction<reactor.netty.http.server.HttpServerRequest,reactor.netty.http.server.HttpServerResponse,reactor.core.publisher.Mono<java.lang.Void>>
    Adapt HttpHandler to the Reactor Netty channel handling function.
    Since:
    5.0
    Author:
    Stephane Maldini, Rossen Stoyanchev
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      reactor.core.publisher.Mono<java.lang.Void> apply(reactor.netty.http.server.HttpServerRequest reactorRequest, reactor.netty.http.server.HttpServerResponse reactorResponse) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.BiFunction

        andThen
    • Constructor Detail

      • ReactorHttpHandlerAdapter

        public ReactorHttpHandlerAdapter(HttpHandler httpHandler)
    • Method Detail

      • apply

        public reactor.core.publisher.Mono<java.lang.Void> apply(reactor.netty.http.server.HttpServerRequest reactorRequest,
                                                                 reactor.netty.http.server.HttpServerResponse reactorResponse)
        Specified by:
        apply in interface java.util.function.BiFunction<reactor.netty.http.server.HttpServerRequest,reactor.netty.http.server.HttpServerResponse,reactor.core.publisher.Mono<java.lang.Void>>