public class NettyHttpServerHandler extends io.netty.channel.SimpleChannelInboundHandler<Object>
Constructor | Description |
---|---|
NettyHttpServerHandler(HttpServerProcessor httpServerProcessor) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext context,
Object object) |
Read the channel.
|
void |
channelReadComplete(io.netty.channel.ChannelHandlerContext context) |
Complete the channel read.
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext context,
Throwable throwable) |
Handle the exception.
|
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
public NettyHttpServerHandler(HttpServerProcessor httpServerProcessor)
httpServerProcessor
- the HTTP server processor.public void channelReadComplete(io.netty.channel.ChannelHandlerContext context)
channelReadComplete
in class io.netty.channel.ChannelInboundHandlerAdapter
context
- the context.protected void channelRead0(io.netty.channel.ChannelHandlerContext context, Object object)
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<Object>
context
- the context.object
- the object read.public void exceptionCaught(io.netty.channel.ChannelHandlerContext context, Throwable throwable)
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
context
- the context.throwable
- the throwable.Copyright © 2020 Piranha Cloud. All rights reserved.