Class HttpTunnelingClientSocketChannel.ServletChannelHandler
- java.lang.Object
-
- org.jboss.netty.channel.SimpleChannelUpstreamHandler
-
- org.jboss.netty.channel.socket.http.HttpTunnelingClientSocketChannel.ServletChannelHandler
-
- All Implemented Interfaces:
ChannelHandler,ChannelUpstreamHandler
- Enclosing class:
- HttpTunnelingClientSocketChannel
final class HttpTunnelingClientSocketChannel.ServletChannelHandler extends SimpleChannelUpstreamHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Field Summary
Fields Modifier and Type Field Description private booleanreadingChunks(package private) SocketChannelvirtualChannel
-
Constructor Summary
Constructors Constructor Description ServletChannelHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelBound(ChannelHandlerContext ctx, ChannelStateEvent e)Invoked when aChannelis open and bound to a local address, but not connected.voidchannelClosed(ChannelHandlerContext ctx, ChannelStateEvent e)Invoked when aChannelwas closed and all its related resources were released.voidchannelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e)Invoked when aChannelwas disconnected from its remote peer.voidchannelInterestChanged(ChannelHandlerContext ctx, ChannelStateEvent e)Invoked when aChannel'sinterestOpswas changed.voidchannelUnbound(ChannelHandlerContext ctx, ChannelStateEvent e)Invoked when aChannelwas unbound from the current local address.voidexceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)Invoked when an exception was raised by an I/O thread or aChannelHandler.voidmessageReceived(ChannelHandlerContext ctx, MessageEvent e)Invoked when a message object (e.g:ChannelBuffer) was received from a remote peer.-
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelConnected, channelOpen, childChannelClosed, childChannelOpen, handleUpstream, writeComplete
-
-
-
-
Field Detail
-
readingChunks
private volatile boolean readingChunks
-
virtualChannel
final SocketChannel virtualChannel
-
-
Method Detail
-
channelBound
public void channelBound(ChannelHandlerContext ctx, ChannelStateEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandlerInvoked when aChannelis open and bound to a local address, but not connected.
Be aware that this event is fired from within the I/O thread. You should never execute any heavy operation in there as it will block the dispatching to other workers!- Overrides:
channelBoundin classSimpleChannelUpstreamHandler- Throws:
java.lang.Exception
-
messageReceived
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandlerInvoked when a message object (e.g:ChannelBuffer) was received from a remote peer.- Overrides:
messageReceivedin classSimpleChannelUpstreamHandler- Throws:
java.lang.Exception
-
channelInterestChanged
public void channelInterestChanged(ChannelHandlerContext ctx, ChannelStateEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandlerInvoked when aChannel'sinterestOpswas changed.- Overrides:
channelInterestChangedin classSimpleChannelUpstreamHandler- Throws:
java.lang.Exception
-
channelDisconnected
public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandlerInvoked when aChannelwas disconnected from its remote peer.- Overrides:
channelDisconnectedin classSimpleChannelUpstreamHandler- Throws:
java.lang.Exception
-
channelUnbound
public void channelUnbound(ChannelHandlerContext ctx, ChannelStateEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandlerInvoked when aChannelwas unbound from the current local address.- Overrides:
channelUnboundin classSimpleChannelUpstreamHandler- Throws:
java.lang.Exception
-
channelClosed
public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandlerInvoked when aChannelwas closed and all its related resources were released.- Overrides:
channelClosedin classSimpleChannelUpstreamHandler- Throws:
java.lang.Exception
-
exceptionCaught
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws java.lang.Exception
Description copied from class:SimpleChannelUpstreamHandlerInvoked when an exception was raised by an I/O thread or aChannelHandler.- Overrides:
exceptionCaughtin classSimpleChannelUpstreamHandler- Throws:
java.lang.Exception
-
-