|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asterisk.fastagi.command.AGICommand
net.sf.asterisk.fastagi.command.DatabasePutCommand
public class DatabasePutCommand
Adds or updates an entry in the Asterisk database for a given family, key,
and value.
Returns 1 if successful, 0 otherwise.
| Constructor Summary | |
|---|---|
DatabasePutCommand(java.lang.String family,
java.lang.String key,
java.lang.String value)
Creates a new DatabasePutCommand. |
|
| 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 set. |
java.lang.String |
getKey()
Returns the the key to set. |
java.lang.String |
getValue()
Returns the value to set. |
void |
setFamily(java.lang.String family)
Sets the family of the key to set. |
void |
setKey(java.lang.String key)
Sets the key to set. |
void |
setValue(java.lang.String value)
Sets the value to set. |
| 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 DatabasePutCommand(java.lang.String family,
java.lang.String key,
java.lang.String value)
family - the family of the key to set.key - the key to set.value - the value to set.| Method Detail |
|---|
public java.lang.String getFamily()
public void setFamily(java.lang.String family)
family - the family of the key to set.public java.lang.String getKey()
public void setKey(java.lang.String key)
key - the key to set.public java.lang.String getValue()
public void setValue(java.lang.String value)
value - the value to set.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 | |||||||||