net.sf.asterisk.fastagi.command
Class SetVariableCommand

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

public class SetVariableCommand
extends AGICommand

Sets the given channel varible to the given value.

Version:
$Id: SetVariableCommand.java,v 1.3 2005/03/10 21:48:11 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
SetVariableCommand(java.lang.String variable, java.lang.String value)
          Creates a new GetVariableCommand.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getValue()
          Returns the value to set.
 java.lang.String getVariable()
          Returns the name of the variable to set.
 void setValue(java.lang.String value)
          Sets the value to set.
 void setVariable(java.lang.String variable)
          Sets the name of the variable 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

SetVariableCommand

public SetVariableCommand(java.lang.String variable,
                          java.lang.String value)
Creates a new GetVariableCommand.

Parameters:
variable - the name of the variable to set.
value - the value to set.
Method Detail

getVariable

public java.lang.String getVariable()
Returns the name of the variable to set.

Returns:
the the name of the variable to set.

setVariable

public void setVariable(java.lang.String variable)
Sets the name of the variable to set.

Parameters:
variable - the name of the variable to set.

getValue

public java.lang.String getValue()
Returns the value to set.

Returns:
the value to set.

setValue

public void setValue(java.lang.String value)
Sets the value to set.

Parameters:
value - the value to set.

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.