Interface ReactiveWebServerFactory

All Superinterfaces:
WebServerFactory
All Known Subinterfaces:
ConfigurableReactiveWebServerFactory
All Known Implementing Classes:
AbstractReactiveWebServerFactory, JettyReactiveWebServerFactory, NettyReactiveWebServerFactory, TomcatReactiveWebServerFactory, UndertowReactiveWebServerFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ReactiveWebServerFactory extends WebServerFactory
Factory interface that can be used to create a reactive WebServer.
Since:
2.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getWebServer(org.springframework.http.server.reactive.HttpHandler httpHandler)
    Gets a new fully configured but paused WebServer instance.
  • Method Details

    • getWebServer

      WebServer getWebServer(org.springframework.http.server.reactive.HttpHandler httpHandler)
      Gets a new fully configured but paused WebServer instance. Clients should not be able to connect to the returned server until WebServer.start() is called (which happens when the ApplicationContext has been fully refreshed).
      Parameters:
      httpHandler - the HTTP handler in charge of processing requests
      Returns:
      a fully configured and started WebServer
      See Also: