net.sf.asterisk.fastagi.command
Class AGICommand

java.lang.Object
  extended by net.sf.asterisk.fastagi.command.AGICommand
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AnswerCommand, ChannelStatusCommand, ControlStreamFileCommand, DatabaseDelCommand, DatabaseDelTreeCommand, DatabaseGetCommand, DatabasePutCommand, ExecCommand, GetDataCommand, GetFullVariableCommand, GetOptionCommand, GetVariableCommand, HangupCommand, NoopCommand, ReceiveCharCommand, ReceiveTextCommand, RecordFileCommand, SayAlphaCommand, SayDateTimeCommand, SayDigitsCommand, SayNumberCommand, SayPhoneticCommand, SayTimeCommand, SendImageCommand, SendTextCommand, SetAutoHangupCommand, SetCallerIdCommand, SetContextCommand, SetExtensionCommand, SetMusicOffCommand, SetMusicOnCommand, SetPriorityCommand, SetVariableCommand, StreamFileCommand, TDDModeCommand, VerboseCommand, WaitForDigitCommand

public abstract class AGICommand
extends java.lang.Object
implements java.io.Serializable

Abstract base class for all commands supported by asterisk's FastAGI.

Version:
$Id: AGICommand.java,v 1.4 2005/03/13 11:26:48 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
AGICommand()
           
 
Method Summary
abstract  java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
protected  java.lang.String escapeAndQuote(java.lang.String s)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AGICommand

public AGICommand()
Method Detail

buildCommand

public abstract java.lang.String buildCommand()
Returns a string suitable to be sent to asterisk.

Returns:
a string suitable to be sent to asterisk.

escapeAndQuote

protected java.lang.String escapeAndQuote(java.lang.String s)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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