Class NettyReactiveWebServerFactory

    • Method Detail

      • getWebServer

        public WebServer getWebServer​(org.springframework.http.server.reactive.HttpHandler httpHandler)
        Description copied from interface: ReactiveWebServerFactory
        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:
        WebServer.stop()
      • setLifecycleTimeout

        public void setLifecycleTimeout​(Duration lifecycleTimeout)
        Set the maximum amount of time that should be waited when starting or stopping the server.
        Parameters:
        lifecycleTimeout - the lifecycle timeout
      • setUseForwardHeaders

        public void setUseForwardHeaders​(boolean useForwardHeaders)
        Set if x-forward-* headers should be processed.
        Parameters:
        useForwardHeaders - if x-forward headers should be used
        Since:
        2.1.0
      • setResourceFactory

        public void setResourceFactory​(org.springframework.http.client.reactive.ReactorResourceFactory resourceFactory)
        Set the ReactorResourceFactory to get the shared resources from.
        Parameters:
        resourceFactory - the server resources
        Since:
        2.1.0