org.freeswitch.esl.client.outbound
Class AbstractOutboundClientHandler
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.freeswitch.esl.client.internal.AbstractEslClientHandler
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:
-
To send a 'connect' command when the FreeSWITCH server first establishes a new connection with
the socket client in Outbound mode. This will result in an incoming
EslMessage that is
transformed into an EslEvent that sub classes can handle.
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
| Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler |
channelBound, channelClosed, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, handleUpstream, writeComplete |
AbstractOutboundClientHandler
public AbstractOutboundClientHandler()
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.