Search in sources :

Example 1 with JettyHttpHandlerAdapter

use of org.springframework.http.server.reactive.JettyHttpHandlerAdapter in project spring-boot by spring-projects.

the class JettyReactiveWebServerFactory method getWebServer.

@Override
public WebServer getWebServer(HttpHandler httpHandler) {
    JettyHttpHandlerAdapter servlet = new JettyHttpHandlerAdapter(httpHandler);
    Server server = createJettyServer(servlet);
    return new JettyWebServer(server, getPort() >= 0);
}
Also used : WebServer(org.springframework.boot.web.server.WebServer) Server(org.eclipse.jetty.server.Server) JettyHttpHandlerAdapter(org.springframework.http.server.reactive.JettyHttpHandlerAdapter)

Aggregations

Server (org.eclipse.jetty.server.Server)1 WebServer (org.springframework.boot.web.server.WebServer)1 JettyHttpHandlerAdapter (org.springframework.http.server.reactive.JettyHttpHandlerAdapter)1