groovyx.gpars.remote.netty
Class NettyHandler

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelHandler
      extended by 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

@ChannelHandler.Sharable
public class NettyHandler
extends org.jboss.netty.channel.SimpleChannelHandler

Author:
Alex Tkachman

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Field Summary
private  RemoteConnection connection
           
private  org.jboss.netty.channel.Channel channel
           
 
Constructor Summary
NettyHandler(NettyTransportProvider provider)
           
 
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
 

Field Detail

channel

private org.jboss.netty.channel.Channel channel

connection

private final RemoteConnection connection
Constructor Detail

NettyHandler

public NettyHandler(NettyTransportProvider provider)
Method Detail

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()

Copyright © 2008–2012 Václav Pech. All Rights Reserved.