groovyx.gpars.remote.netty
Class NettyHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelHandler
groovyx.gpars.remote.netty.NettyHandler
- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
- Direct Known Subclasses:
- NettyTransportProvider.ClientHandler
@ChannelPipelineCoverage(value="one")
public class NettyHandler
- extends org.jboss.netty.channel.SimpleChannelHandler
- Author:
- Alex Tkachman
Method Summary |
void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
|
org.jboss.netty.channel.Channel |
getChannel()
|
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
|
void |
channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
|
void |
channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
|
void |
messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
|
Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler |
bindRequested, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, channelBound, channelClosed, channelInterestChanged, channelUnbound, childChannelClosed, childChannelOpen, setInterestOpsRequested, unbindRequested, writeComplete, writeRequested |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
channel
private org.jboss.netty.channel.Channel channel
connection
private final RemoteConnection connection
NettyHandler
public NettyHandler(NettyTransportProvider provider)
channelOpen
public void channelOpen(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws java.lang.Exception
- Overrides:
channelOpen
in class org.jboss.netty.channel.SimpleChannelHandler
- Throws:
java.lang.Exception
channelConnected
public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws java.lang.Exception
- Overrides:
channelConnected
in class org.jboss.netty.channel.SimpleChannelHandler
- Throws:
java.lang.Exception
channelDisconnected
public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e)
throws java.lang.Exception
- Overrides:
channelDisconnected
in class org.jboss.netty.channel.SimpleChannelHandler
- Throws:
java.lang.Exception
messageReceived
public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.MessageEvent e)
- Overrides:
messageReceived
in class org.jboss.netty.channel.SimpleChannelHandler
exceptionCaught
public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e)
- Overrides:
exceptionCaught
in class org.jboss.netty.channel.SimpleChannelHandler
getChannel
public org.jboss.netty.channel.Channel getChannel()