Move RxNetty support to test scope
The RxNetty runtime support is not meant to be officially supported and should be restricted to testing purposes only. Issue: SPR-15444
This commit is contained in:
@@ -177,7 +177,7 @@ Now there is just one piece of the puzzle missing: running a router function in
|
||||
You can convert a router function into a `HttpHandler` by using
|
||||
`RouterFunctions.toHttpHandler(RouterFunction)`.
|
||||
The `HttpHandler` allows you to run on a wide variety of reactive runtimes: Reactor Netty,
|
||||
RxNetty, Servlet 3.1+, and Undertow.
|
||||
Servlet 3.1+, and Undertow.
|
||||
Here is how we run a router function in Reactor Netty, for instance:
|
||||
|
||||
[source,java,indent=0]
|
||||
|
||||
@@ -223,7 +223,7 @@ default as following:
|
||||
|
||||
WebFlux includes reactive WebSocket client and server support.
|
||||
Both client and server are supported on the Java WebSocket API
|
||||
(JSR-356), Jetty, Undertow, Reactor Netty, and RxNetty.
|
||||
(JSR-356), Jetty, Undertow, and Reactor Netty.
|
||||
|
||||
On the server side, declare a `WebSocketHandlerAdapter` and then simply add
|
||||
mappings to `WebSocketHandler`-based endpoints:
|
||||
@@ -310,7 +310,6 @@ Lastly add the dependencies for one of the supported runtimes:
|
||||
* Tomcat -- `org.apache.tomcat.embed:tomcat-embed-core`
|
||||
* Jetty -- `org.eclipse.jetty:jetty-server` and `org.eclipse.jetty:jetty-servlet`
|
||||
* Reactor Netty -- `io.projectreactor.ipc:reactor-netty`
|
||||
* RxNetty -- `io.reactivex:rxnetty-common` and `io.reactivex:rxnetty-http`
|
||||
* Undertow -- `io.undertow:undertow-core`
|
||||
|
||||
For the **annotation-based programming model** bootstrap with:
|
||||
@@ -356,11 +355,6 @@ HttpServlet servlet = new ServletHttpHandlerAdapter(handler);
|
||||
ReactorHttpHandlerAdapter adapter = new ReactorHttpHandlerAdapter(handler);
|
||||
HttpServer.create(host, port).newHandler(adapter).block();
|
||||
|
||||
// RxNetty
|
||||
RxNettyHttpHandlerAdapter adapter = new RxNettyHttpHandlerAdapter(handler);
|
||||
HttpServer server = HttpServer.newServer(new InetSocketAddress(host, port));
|
||||
server.startAndAwait(adapter);
|
||||
|
||||
// Undertow
|
||||
UndertowHttpHandlerAdapter adapter = new UndertowHttpHandlerAdapter(handler);
|
||||
Undertow server = Undertow.builder().addHttpListener(port, host).setHandler(adapter).build();
|
||||
|
||||
Reference in New Issue
Block a user