Package io.netty.channel
Interface ChannelInboundHandler
- All Superinterfaces:
ChannelHandler
- All Known Subinterfaces:
WebSocketFrameDecoder
- All Known Implementing Classes:
AbstractBinaryMemcacheDecoder
,AbstractMemcacheObjectAggregator
,AbstractMemcacheObjectDecoder
,AbstractRemoteAddressFilter
,AbstractSniHandler
,AbstractTrafficShapingHandler
,ApplicationProtocolNegotiationHandler
,Base64Decoder
,BinaryMemcacheClientCodec
,BinaryMemcacheClientCodec.Decoder
,BinaryMemcacheObjectAggregator
,BinaryMemcacheRequestDecoder
,BinaryMemcacheResponseDecoder
,BinaryMemcacheServerCodec
,ByteArrayDecoder
,ByteToMessageCodec
,ByteToMessageDecoder
,Bzip2Decoder
,ChannelDuplexHandler
,ChannelInboundHandlerAdapter
,ChannelInitializer
,ChannelTrafficShapingHandler
,ChunkedWriteHandler
,CleartextHttp2ServerUpgradeHandler
,CombinedChannelDuplexHandler
,CorsHandler
,DatagramDnsQueryDecoder
,DatagramDnsResponseDecoder
,DatagramPacketDecoder
,DefaultChannelPipeline.HeadContext
,DefaultChannelPipeline.TailContext
,DeflateDecoder
,DelimiterBasedFrameDecoder
,DnsNameResolver.DnsResponseHandler
,FastLzFrameDecoder
,FixedLengthFrameDecoder
,FlowControlHandler
,FlushConsolidationHandler
,GlobalChannelTrafficShapingHandler
,GlobalTrafficShapingHandler
,HAProxyMessageDecoder
,Http2ChannelDuplexHandler
,Http2ConnectionHandler
,Http2FrameCodec
,Http2MultiplexCodec
,Http2MultiplexHandler
,Http2StreamFrameToHttpObjectCodec
,HttpClientCodec
,HttpClientCodec.Decoder
,HttpClientUpgradeHandler
,HttpContentCompressor
,HttpContentDecoder
,HttpContentDecompressor
,HttpContentEncoder
,HttpObjectAggregator
,HttpObjectDecoder
,HttpProxyHandler
,HttpProxyHandler.HttpClientCodecWrapper
,HttpRequestDecoder
,HttpResponseDecoder
,HttpServerCodec
,HttpServerCodec.HttpServerRequestDecoder
,HttpServerExpectContinueHandler
,HttpServerKeepAliveHandler
,HttpServerUpgradeHandler
,HttpToHttp2ConnectionHandler
,IdleStateHandler
,InboundHttpToHttp2Adapter
,IpSubnetFilter
,JdkZlibDecoder
,JsonObjectDecoder
,JZlibDecoder
,LengthFieldBasedFrameDecoder
,LineBasedFrameDecoder
,LoggingHandler
,MessageAggregator
,MessageToMessageCodec
,MessageToMessageDecoder
,MqttDecoder
,ObjectDecoder
,OcspClient.Initializer
,OcspClientHandler
,OcspHttpHandler
,OcspServerCertificateValidator
,OptionalSslHandler
,PcapWriteHandler
,PerFrameDeflateDecoder
,PerMessageDeflateDecoder
,ProxyHandler
,ReadTimeoutHandler
,RedisArrayAggregator
,RedisBulkStringAggregator
,RedisDecoder
,ReplayingDecoder
,RtspDecoder
,RtspObjectDecoder
,RtspRequestDecoder
,RtspResponseDecoder
,RuleBasedIpFilter
,ServerBootstrap.ServerBootstrapAcceptor
,SimpleChannelInboundHandler
,SimpleUserEventChannelHandler
,SmtpResponseDecoder
,SnappyFramedDecoder
,SnappyFrameDecoder
,SniHandler
,Socks4ClientDecoder
,Socks4ProxyHandler
,Socks4ServerDecoder
,Socks5CommandRequestDecoder
,Socks5CommandResponseDecoder
,Socks5InitialRequestDecoder
,Socks5InitialResponseDecoder
,Socks5PasswordAuthRequestDecoder
,Socks5PasswordAuthResponseDecoder
,Socks5ProxyHandler
,SocksAuthRequestDecoder
,SocksAuthResponseDecoder
,SocksCmdRequestDecoder
,SocksCmdResponseDecoder
,SocksInitRequestDecoder
,SocksInitResponseDecoder
,SocksPortUnificationServerHandler
,SpdyFrameCodec
,SpdyHttpCodec
,SpdyHttpDecoder
,SpdyHttpResponseStreamIdHandler
,SpdySessionHandler
,SslClientHelloHandler
,SslHandler
,SslMasterKeyHandler
,SslMasterKeyHandler.WiresharkSslMasterKeyHandler
,StompSubframeAggregator
,StompSubframeDecoder
,StringDecoder
,TcpDnsQueryDecoder
,TcpDnsResponseDecoder
,UniqueIpFilter
,Utf8FrameValidator
,WebSocket00FrameDecoder
,WebSocket07FrameDecoder
,WebSocket08FrameDecoder
,WebSocket13FrameDecoder
,WebSocketClientCompressionHandler
,WebSocketClientExtensionHandler
,WebSocketClientProtocolHandler
,WebSocketClientProtocolHandshakeHandler
,WebSocketExtensionDecoder
,WebSocketFrameAggregator
,WebSocketProtocolHandler
,WebSocketServerCompressionHandler
,WebSocketServerExtensionHandler
,WebSocketServerProtocolHandler
,WebSocketServerProtocolHandshakeHandler
,XmlFrameDecoder
,ZlibDecoder
ChannelHandler
which adds callbacks for state changes. This allows the user
to hook in to state changes easily.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Method Summary
Modifier and TypeMethodDescriptionvoid
TheChannel
of theChannelHandlerContext
is now activevoid
TheChannel
of theChannelHandlerContext
was registered is now inactive and reached its end of lifetime.void
channelRead
(ChannelHandlerContext ctx, Object msg) Invoked when the currentChannel
has read a message from the peer.void
Invoked when the last message read by the current read operation has been consumed bychannelRead(ChannelHandlerContext, Object)
.void
void
void
Gets called once the writable state of aChannel
changed.void
exceptionCaught
(ChannelHandlerContext ctx, Throwable cause) Gets called if aThrowable
was thrown.void
userEventTriggered
(ChannelHandlerContext ctx, Object evt) Gets called if an user event was triggered.Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Method Details
-
channelRegistered
- Throws:
Exception
-
channelUnregistered
- Throws:
Exception
-
channelActive
TheChannel
of theChannelHandlerContext
is now active- Throws:
Exception
-
channelInactive
TheChannel
of theChannelHandlerContext
was registered is now inactive and reached its end of lifetime.- Throws:
Exception
-
channelRead
Invoked when the currentChannel
has read a message from the peer.- Throws:
Exception
-
channelReadComplete
Invoked when the last message read by the current read operation has been consumed bychannelRead(ChannelHandlerContext, Object)
. IfChannelOption.AUTO_READ
is off, no further attempt to read an inbound data from the currentChannel
will be made untilChannelHandlerContext.read()
is called.- Throws:
Exception
-
userEventTriggered
Gets called if an user event was triggered.- Throws:
Exception
-
channelWritabilityChanged
Gets called once the writable state of aChannel
changed. You can check the state withChannel.isWritable()
.- Throws:
Exception
-
exceptionCaught
Gets called if aThrowable
was thrown.- Specified by:
exceptionCaught
in interfaceChannelHandler
- Throws:
Exception
-