public class DatabaseGetCommand extends AbstractAgiCommand
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 and Description |
|---|
DatabaseGetCommand(String family,
String key)
Creates a new DatabaseGetCommand.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getFamily()
Returns the family of the key to retrieve.
|
String |
getKey()
Returns the the key to retrieve.
|
void |
setFamily(String family)
Sets the family of the key to retrieve.
|
void |
setKey(String key)
Sets the key to retrieve.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic String getFamily()
public void setFamily(String family)
family - the family of the key to retrieve.public String getKey()
public void setKey(String key)
key - the key to retrieve.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2021. All rights reserved.