public final class ServerInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
Modifier and Type | Class and Description |
---|---|
static class |
ServerInitializer.Builder |
Modifier and Type | Method and Description |
---|---|
static ServerInitializer.Builder |
builder() |
InetSocketAddress |
getBindAddress() |
io.netty.handler.codec.http.cors.CorsConfig |
getCorsConfig() |
int |
getMaxContentLength() |
io.netty.handler.ssl.SslContext |
getSslCtx() |
org.restnext.server.ServerInitializer.Timeout |
getTimeout() |
boolean |
isSslConfigured() |
static ServerInitializer.Builder |
route(String uri,
Function<org.restnext.core.http.Request,org.restnext.core.http.Response> provider) |
static ServerInitializer.Builder |
routes(Route.Mapping... routesMapping) |
channelRegistered, exceptionCaught, handlerAdded
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
public static ServerInitializer.Builder route(String uri, Function<org.restnext.core.http.Request,org.restnext.core.http.Response> provider)
public static ServerInitializer.Builder builder()
public static ServerInitializer.Builder routes(Route.Mapping... routesMapping)
public io.netty.handler.codec.http.cors.CorsConfig getCorsConfig()
public int getMaxContentLength()
public InetSocketAddress getBindAddress()
public org.restnext.server.ServerInitializer.Timeout getTimeout()
public boolean isSslConfigured()
public io.netty.handler.ssl.SslContext getSslCtx()
Copyright © 2016–2017 RestNEXT. All rights reserved.