org.springframework.http.server.reactive.UndertowHttpHandlerAdapter Java Examples
The following examples show how to use
org.springframework.http.server.reactive.UndertowHttpHandlerAdapter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Application.java From spring-reactive-sample with GNU General Public License v3.0 | 5 votes |
@Bean public Undertow undertowServer(ApplicationContext context) { HttpHandler handler = WebHttpHandlerBuilder.applicationContext(context).build(); // (2) // Undertow UndertowHttpHandlerAdapter undertowAdapter = new UndertowHttpHandlerAdapter(handler); Undertow server = Undertow.builder() .addHttpListener(port, "localhost") .setHandler(undertowAdapter) .build(); return server; }
Example #2
Source File: UndertowHttpServer.java From spring-analysis-note with MIT License | 4 votes |
private UndertowHttpHandlerAdapter initHttpHandlerAdapter() { return new UndertowHttpHandlerAdapter(resolveHttpHandler()); }
Example #3
Source File: UndertowHttpServer.java From java-technology-stack with MIT License | 4 votes |
private UndertowHttpHandlerAdapter initHttpHandlerAdapter() { return new UndertowHttpHandlerAdapter(resolveHttpHandler()); }