IN - The type that will be received by this serverOUT - The type that will be sent by this serverpublic class NettyHttpServer<IN,OUT> extends HttpServer<IN,OUT>
TcpServer implementation| Modifier and Type | Field and Description |
|---|---|
protected TcpServer<IN,OUT> |
server |
routedWritersstarted| Modifier | Constructor and Description |
|---|---|
protected |
NettyHttpServer(reactor.Environment env,
reactor.core.Dispatcher dispatcher,
java.net.InetSocketAddress listenAddress,
ServerSocketOptions options,
SslOptions sslOptions,
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindChannel(ReactorChannelHandler<IN,OUT,ChannelStream<IN,OUT>> handler,
io.netty.channel.socket.SocketChannel nativeChannel) |
protected reactor.rx.Promise<java.lang.Void> |
doShutdown() |
protected reactor.rx.Promise<java.lang.Void> |
doStart(ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler) |
java.net.InetSocketAddress |
getListenAddress()
Get the address to which this server is bound.
|
protected void |
onWebsocket(HttpChannel<IN,OUT> next) |
protected java.lang.Iterable<? extends org.reactivestreams.Publisher<java.lang.Void>> |
routeChannel(HttpChannel<IN,OUT> ch) |
delete, get, hasWebsocketEndpoints, post, put, route, start, wsgetDefaultCodec, getDefaultDispatcher, getDefaultEnvironment, getDefaultPrefetchSize, shutdown, startprotected NettyHttpServer(reactor.Environment env,
reactor.core.Dispatcher dispatcher,
java.net.InetSocketAddress listenAddress,
ServerSocketOptions options,
SslOptions sslOptions,
reactor.io.codec.Codec<reactor.io.buffer.Buffer,IN,OUT> codec)
public java.net.InetSocketAddress getListenAddress()
HttpServergetListenAddress in class HttpServer<IN,OUT>protected reactor.rx.Promise<java.lang.Void> doStart(ReactorChannelHandler<IN,OUT,HttpChannel<IN,OUT>> handler)
doStart in class ReactorPeer<IN,OUT,HttpChannel<IN,OUT>>protected java.lang.Iterable<? extends org.reactivestreams.Publisher<java.lang.Void>> routeChannel(HttpChannel<IN,OUT> ch)
routeChannel in class HttpServer<IN,OUT>protected void onWebsocket(HttpChannel<IN,OUT> next)
onWebsocket in class HttpServer<IN,OUT>protected final reactor.rx.Promise<java.lang.Void> doShutdown()
doShutdown in class ReactorPeer<IN,OUT,HttpChannel<IN,OUT>>protected void bindChannel(ReactorChannelHandler<IN,OUT,ChannelStream<IN,OUT>> handler, io.netty.channel.socket.SocketChannel nativeChannel)