net.sf.asterisk.fastagi.command
Class DatabaseDelTreeCommand

java.lang.Object
  extended by net.sf.asterisk.fastagi.command.AGICommand
      extended by net.sf.asterisk.fastagi.command.DatabaseDelTreeCommand
All Implemented Interfaces:
java.io.Serializable

public class DatabaseDelTreeCommand
extends AGICommand

Deletes an entry in the Asterisk database for a given family and key.
Returns 1 if successful, 0 otherwise.

Version:
$Id: DatabaseDelTreeCommand.java,v 1.2 2005/03/08 16:48:34 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
DatabaseDelTreeCommand(java.lang.String family, java.lang.String key)
          Creates a new DatabaseDelCommand.
 
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 delete.
 java.lang.String getKey()
          Returns the the key to delete.
 void setFamily(java.lang.String family)
          Sets the family of the key to delete.
 void setKey(java.lang.String key)
          Sets the key to delete.
 
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

DatabaseDelTreeCommand

public DatabaseDelTreeCommand(java.lang.String family,
                              java.lang.String key)
Creates a new DatabaseDelCommand.

Parameters:
family - the family of the key to delete.
key - the key to delete.
Method Detail

getFamily

public java.lang.String getFamily()
Returns the family of the key to delete.

Returns:
the family of the key to delete.

setFamily

public void setFamily(java.lang.String family)
Sets the family of the key to delete.

Parameters:
family - the family of the key to delete.

getKey

public java.lang.String getKey()
Returns the the key to delete.

Returns:
the key to delete.

setKey

public void setKey(java.lang.String key)
Sets the key to delete.

Parameters:
key - the key to delete.

buildCommand

public java.lang.String buildCommand()
Description copied from class: AGICommand
Returns a string suitable to be sent to asterisk.

Specified by:
buildCommand in class AGICommand
Returns:
a string suitable to be sent to asterisk.


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