public class HexDumpProxyInboundHandler extends SimpleChannelUpstreamHandler
| Modifier and Type | Class and Description |
|---|---|
private class |
HexDumpProxyInboundHandler.OutboundHandler |
ChannelHandler.Sharable| Modifier and Type | Field and Description |
|---|---|
private ClientSocketChannelFactory |
cf |
private Channel |
outboundChannel |
(package private) java.lang.Object |
trafficLock |
| Constructor and Description |
|---|
HexDumpProxyInboundHandler(ClientSocketChannelFactory cf) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelClosed(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel was closed and all its related resources
were released. |
void |
channelInterestChanged(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel's interestOps
was changed. |
void |
channelOpen(ChannelHandlerContext ctx,
ChannelStateEvent e)
Invoked when a
Channel is open, but not bound nor connected. |
(package private) static void |
closeOnFlush(Channel ch)
Closes the specified channel after all queued write requests are flushed.
|
void |
exceptionCaught(ChannelHandlerContext ctx,
ExceptionEvent e)
Invoked when an exception was raised by an I/O thread or a
ChannelHandler. |
void |
messageReceived(ChannelHandlerContext ctx,
MessageEvent e)
Invoked when a message object (e.g:
ChannelBuffer) was received
from a remote peer. |
channelBound, channelConnected, channelDisconnected, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeCompleteprivate final ClientSocketChannelFactory cf
final java.lang.Object trafficLock
private volatile Channel outboundChannel
public HexDumpProxyInboundHandler(ClientSocketChannelFactory cf)
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e)
SimpleChannelUpstreamHandlerChannel is open, but not bound nor connected.
channelOpen in class SimpleChannelUpstreamHandlerpublic void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
SimpleChannelUpstreamHandlerChannelBuffer) was received
from a remote peer.messageReceived in class SimpleChannelUpstreamHandlerpublic void channelInterestChanged(ChannelHandlerContext ctx, ChannelStateEvent e)
SimpleChannelUpstreamHandlerChannel's interestOps
was changed.channelInterestChanged in class SimpleChannelUpstreamHandlerpublic void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e)
SimpleChannelUpstreamHandlerChannel was closed and all its related resources
were released.channelClosed in class SimpleChannelUpstreamHandlerpublic void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
SimpleChannelUpstreamHandlerChannelHandler.exceptionCaught in class SimpleChannelUpstreamHandlerstatic void closeOnFlush(Channel ch)