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,HttpContentDecoder.ByteBufForwarder,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,SctpInboundByteStreamHandler,SctpMessageCompletionHandler,SctpMessageToMessageDecoder,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,XmlDecoder,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 TypeMethodDescriptionvoidTheChannelof theChannelHandlerContextis now activevoidTheChannelof theChannelHandlerContextwas registered is now inactive and reached its end of lifetime.voidchannelRead(ChannelHandlerContext ctx, Object msg) Invoked when the currentChannelhas read a message from the peer.voidInvoked when the last message read by the current read operation has been consumed bychannelRead(ChannelHandlerContext, Object).voidvoidvoidGets called once the writable state of aChannelchanged.voidexceptionCaught(ChannelHandlerContext ctx, Throwable cause) Gets called if aThrowablewas thrown.voiduserEventTriggered(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
TheChannelof theChannelHandlerContextis now active- Throws:
Exception
-
channelInactive
TheChannelof theChannelHandlerContextwas registered is now inactive and reached its end of lifetime.- Throws:
Exception
-
channelRead
Invoked when the currentChannelhas 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_READis off, no further attempt to read an inbound data from the currentChannelwill 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 aChannelchanged. You can check the state withChannel.isWritable().- Throws:
Exception
-
exceptionCaught
Gets called if aThrowablewas thrown.- Specified by:
exceptionCaughtin interfaceChannelHandler- Throws:
Exception
-