org.jboss.netty.example.proxy
Class HexDumpProxyInboundHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.example.proxy.HexDumpProxyInboundHandler
- All Implemented Interfaces:
- ChannelHandler, ChannelUpstreamHandler
public class HexDumpProxyInboundHandler
- extends SimpleChannelUpstreamHandler
- Version:
- $Rev: 2376 $, $Date: 2010-10-25 03:24:20 +0900 (Mon, 25 Oct 2010) $
- Author:
- The Netty Project, Trustin Lee
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HexDumpProxyInboundHandler
public HexDumpProxyInboundHandler(ClientSocketChannelFactory cf,
String remoteHost,
int remotePort)
channelOpen
public void channelOpen(ChannelHandlerContext ctx,
ChannelStateEvent e)
throws Exception
- Description copied from class:
SimpleChannelUpstreamHandler
- Invoked when a
Channel
is open, but not bound nor connected.
- Overrides:
channelOpen
in class SimpleChannelUpstreamHandler
- Throws:
Exception
messageReceived
public void messageReceived(ChannelHandlerContext ctx,
MessageEvent e)
throws Exception
- Description copied from class:
SimpleChannelUpstreamHandler
- Invoked when a message object (e.g:
ChannelBuffer
) was received
from a remote peer.
- Overrides:
messageReceived
in class SimpleChannelUpstreamHandler
- Throws:
Exception
channelInterestChanged
public void channelInterestChanged(ChannelHandlerContext ctx,
ChannelStateEvent e)
throws Exception
- Description copied from class:
SimpleChannelUpstreamHandler
- Invoked when a
Channel
's interestOps
was changed.
- Overrides:
channelInterestChanged
in class SimpleChannelUpstreamHandler
- Throws:
Exception
channelClosed
public void channelClosed(ChannelHandlerContext ctx,
ChannelStateEvent e)
throws Exception
- Description copied from class:
SimpleChannelUpstreamHandler
- Invoked when a
Channel
was closed and all its related resources
were released.
- Overrides:
channelClosed
in class SimpleChannelUpstreamHandler
- Throws:
Exception
exceptionCaught
public void exceptionCaught(ChannelHandlerContext ctx,
ExceptionEvent e)
throws Exception
- Description copied from class:
SimpleChannelUpstreamHandler
- Invoked when an exception was raised by an I/O thread or a
ChannelHandler
.
- Overrides:
exceptionCaught
in class SimpleChannelUpstreamHandler
- Throws:
Exception
Copyright © 2008-2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.