|
|
@ -18,7 +18,6 @@ package org.springframework.reactive.web.http; |
|
|
|
import org.springframework.beans.factory.InitializingBean; |
|
|
|
import org.springframework.beans.factory.InitializingBean; |
|
|
|
import org.springframework.reactive.web.http.reactor.RequestHandlerAdapter; |
|
|
|
import org.springframework.reactive.web.http.reactor.RequestHandlerAdapter; |
|
|
|
import org.springframework.util.Assert; |
|
|
|
import org.springframework.util.Assert; |
|
|
|
import reactor.Environment; |
|
|
|
|
|
|
|
import reactor.bus.selector.Selectors; |
|
|
|
import reactor.bus.selector.Selectors; |
|
|
|
import reactor.io.buffer.Buffer; |
|
|
|
import reactor.io.buffer.Buffer; |
|
|
|
import reactor.io.net.NetStreams; |
|
|
|
import reactor.io.net.NetStreams; |
|
|
@ -48,8 +47,6 @@ public class ReactorHttpServer extends HttpServerSupport implements Initializing |
|
|
|
Assert.notNull(getHttpHandler()); |
|
|
|
Assert.notNull(getHttpHandler()); |
|
|
|
this.reactorHandler = new RequestHandlerAdapter(getHttpHandler()); |
|
|
|
this.reactorHandler = new RequestHandlerAdapter(getHttpHandler()); |
|
|
|
|
|
|
|
|
|
|
|
Environment.initializeIfEmpty(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.reactorServer = (getPort() != -1 ? |
|
|
|
this.reactorServer = (getPort() != -1 ? |
|
|
|
NetStreams.httpServer(getPort()) : |
|
|
|
NetStreams.httpServer(getPort()) : |
|
|
|
NetStreams.httpServer()); |
|
|
|
NetStreams.httpServer()); |
|
|
|