Asterisk-Java

org.asteriskjava.fastagi.internal
Class AsyncAgiWriter

java.lang.Object
  extended by org.asteriskjava.fastagi.internal.AsyncAgiWriter

public class AsyncAgiWriter
extends java.lang.Object

Implementation of AgiWriter that uses a ManagerConnection to send AgiCommands as part of an AsyncAgi conversation.

Since:
1.0.0
See Also:
ManagerConnection, AgiAction

Constructor Summary
AsyncAgiWriter(ManagerConnection connection, java.lang.String channelName)
           
 
Method Summary
 void sendCommand(AgiCommand command)
          Sends the given command to the Asterisk server.
 void updateChannelName(java.lang.String channelName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncAgiWriter

public AsyncAgiWriter(ManagerConnection connection,
                      java.lang.String channelName)
Method Detail

sendCommand

public void sendCommand(AgiCommand command)
                 throws AgiException
Sends the given command to the Asterisk server.

Parameters:
command - the command to send.
Throws:
AgiException - if the command can't be sent.

updateChannelName

public void updateChannelName(java.lang.String channelName)

Asterisk-Java

Copyright © 2004-2009 Stefan Reuter. All Rights Reserved.