public abstract class AbstractAgiCommand extends Object implements Serializable, AgiCommand
| Constructor and Description |
|---|
AbstractAgiCommand() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
protected String |
escapeAndQuote(String s)
Escapes and quotes a given String according to the rules set by
Asterisk's AGI.
|
protected String |
escapeAndQuote(String[] options) |
void |
setAsteriskVersion(AsteriskVersion asteriskVersion) |
String |
toString() |
public abstract String buildCommand()
AgiCommandbuildCommand in interface AgiCommandprotected String escapeAndQuote(String s)
s - the String to escape and quotepublic void setAsteriskVersion(AsteriskVersion asteriskVersion)
setAsteriskVersion in interface AgiCommandCopyright © 2004–2022. All rights reserved.