@ChannelHandler.Sharable
public class RequestHandler
extends io.netty.channel.SimpleChannelInboundHandler
SimpleChannelInboundHandler which handles the requests and dispatch them.
This class is ChannelHandler.Sharable.| Modifier and Type | Field and Description |
|---|---|
protected RequestDispatcher |
dispatcher |
| Constructor and Description |
|---|
RequestHandler(RequestDispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected final RequestDispatcher dispatcher
public RequestHandler(RequestDispatcher dispatcher)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead0 in class io.netty.channel.SimpleChannelInboundHandlerExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable e)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2025. All rights reserved.