Asterisk-Java

org.asteriskjava.fastagi.command
Class SetVariableCommand

java.lang.Object
  extended by org.asteriskjava.fastagi.command.AbstractAgiCommand
      extended by org.asteriskjava.fastagi.command.SetVariableCommand
All Implemented Interfaces:
java.io.Serializable, AgiCommand

public class SetVariableCommand
extends AbstractAgiCommand

Sets the given channel varible to the given value.

Version:
$Id: SetVariableCommand.java 938 2007-12-31 03:23:38Z srt $
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 org.asteriskjava.fastagi.command.AbstractAgiCommand
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 interface: AgiCommand
Returns a string suitable to be sent to asterisk.

Specified by:
buildCommand in interface AgiCommand
Specified by:
buildCommand in class AbstractAgiCommand
Returns:
a string suitable to be sent to asterisk.

Asterisk-Java

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