-
- All Implemented Interfaces:
-
com.hexagonkt.http.server.HttpServerPort
public class NettyServerAdapter implements HttpServerPortImplements HttpServerPort using Netty Channel.
TODO Add HTTP/2 support: https://www.baeldung.com/netty-http2 TODO Add SSE support: https://github.com/marcusyates/netty-sse-example
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classNettyServerAdapter.HttpChannelInitializerpublic final classNettyServerAdapter.HttpsChannelInitializer
-
Constructor Summary
Constructors Constructor Description NettyServerAdapter()NettyServerAdapter(Integer bossGroupThreads, Integer workerGroupThreads, Integer executorThreads, Integer soBacklog, Boolean soReuseAddr, Boolean soKeepAlive)
-
Method Summary
Modifier and Type Method Description IntegerruntimePort()Booleanstarted()UnitstartUp(HttpServer server)MultithreadEventLoopGroupgroupSupplier(Integer it)ServerBootstrapserverBootstrapSupplier(MultithreadEventLoopGroup bossGroup, MultithreadEventLoopGroup workerGroup)UnitshutDown()Set<HttpProtocol>supportedProtocols()Set<HttpServerFeature>supportedFeatures()Map<String, ?>options()-
-
Method Detail
-
runtimePort
Integer runtimePort()
-
groupSupplier
MultithreadEventLoopGroup groupSupplier(Integer it)
-
serverBootstrapSupplier
ServerBootstrap serverBootstrapSupplier(MultithreadEventLoopGroup bossGroup, MultithreadEventLoopGroup workerGroup)
-
supportedProtocols
Set<HttpProtocol> supportedProtocols()
-
supportedFeatures
Set<HttpServerFeature> supportedFeatures()
-
-
-
-