@ChannelHandler.Sharable
public class ResponseHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
Modifier and Type | Method and Description |
---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext handlerCtx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext channelContext,
io.netty.handler.codec.http.HttpObject msg) |
void |
channelUnregistered(io.netty.channel.ChannelHandlerContext handlerCtx) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
static ResponseHandler |
getInstance() |
acceptInboundMessage, channelRead
channelActive, channelReadComplete, channelRegistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected void channelRead0(io.netty.channel.ChannelHandlerContext channelContext, io.netty.handler.codec.http.HttpObject msg) throws Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext handlerCtx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelUnregistered(io.netty.channel.ChannelHandlerContext handlerCtx) throws Exception
channelUnregistered
in interface io.netty.channel.ChannelInboundHandler
channelUnregistered
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public static ResponseHandler getInstance()
Copyright © 2019. All rights reserved.