|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.command.AGICommand net.sf.asterisk.fastagi.command.DatabaseGetCommand
public class DatabaseGetCommand
Retrieves an entry in the Asterisk database for a given family and key.
Returns 0 if is not set. Returns 1 if the variable is set and returns the
value in parenthesis.
Example return code: 200 result=1 (testvariable)
Constructor Summary | |
---|---|
DatabaseGetCommand(java.lang.String family,
java.lang.String key)
Creates a new DatabaseGetCommand. |
Method Summary | |
---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
java.lang.String |
getFamily()
Returns the family of the key to retrieve. |
java.lang.String |
getKey()
Returns the the key to retrieve. |
void |
setFamily(java.lang.String family)
Sets the family of the key to retrieve. |
void |
setKey(java.lang.String key)
Sets the key to retrieve. |
Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand |
---|
escapeAndQuote, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DatabaseGetCommand(java.lang.String family, java.lang.String key)
family
- the family of the key to retrieve.key
- the key to retrieve.Method Detail |
---|
public java.lang.String getFamily()
public void setFamily(java.lang.String family)
family
- the family of the key to retrieve.public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- the key to retrieve.public java.lang.String buildCommand()
AGICommand
buildCommand
in class AGICommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |