org.freeswitch.esl.client.outbound
Class AbstractOutboundClientHandler

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.freeswitch.esl.client.internal.AbstractEslClientHandler
          extended by org.freeswitch.esl.client.outbound.AbstractOutboundClientHandler
All Implemented Interfaces:
ChannelHandler, ChannelUpstreamHandler
Direct Known Subclasses:
SimpleHangupOutboundHandler

public abstract class AbstractOutboundClientHandler
extends AbstractEslClientHandler

Specialised AbstractEslClientHandler that implements the base connecction logic for an 'Outbound' FreeSWITCH Event Socket connection. The responsibilities for this class are:

Note: implementation requirement is that an ExecutionHandler is placed in the processing pipeline prior to this handler. This will ensure that each incoming message is processed in its own thread (although still guaranteed to be processed in the order of receipt).

Author:
david varnes

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable
 
Field Summary
 
Fields inherited from class org.freeswitch.esl.client.internal.AbstractEslClientHandler
LINE_TERMINATOR, MESSAGE_TERMINATOR
 
Constructor Summary
AbstractOutboundClientHandler()
           
 
Method Summary
 void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)
           
 
Methods inherited from class org.freeswitch.esl.client.internal.AbstractEslClientHandler
messageReceived, sendAsyncCommand, sendSyncMultiLineCommand, sendSyncSingleLineCommand
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelClosed, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, handleUpstream, writeComplete
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOutboundClientHandler

public AbstractOutboundClientHandler()
Method Detail

channelConnected

public void channelConnected(ChannelHandlerContext ctx,
                             ChannelStateEvent e)
                      throws Exception
Overrides:
channelConnected in class SimpleChannelUpstreamHandler
Throws:
Exception


Copyright © 2009-2010 david varnes. All Rights Reserved.