final class WebServerHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
WebServer to work.| Modifier and Type | Field and Description |
|---|---|
private WebServer |
webServer
The web server that is handled by this handler instance.
|
| Constructor and Description |
|---|
WebServerHandler(WebServer webServer)
Constructs a new web server handler for a given web server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext ctx) |
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprivate WebServer webServer
public WebServerHandler(WebServer webServer)
webServer - the web server to handle the inbound channel for.public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelReadComplete(io.netty.channel.ChannelHandlerContext ctx)
channelReadComplete in interface io.netty.channel.ChannelInboundHandlerchannelReadComplete in class io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2020. All rights reserved.