Asterisk-Java

org.asteriskjava.fastagi.command
Class SpeechSetCommand

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

public class SpeechSetCommand
extends AbstractAgiCommand

Sets a speech engine specific setting.

Available since Asterisk 1.6.

Since:
1.0.0
Version:
$Id: SpeechSetCommand.java 1013 2008-03-31 06:51:03Z srt $
Author:
srt
See Also:
Serialized Form

Constructor Summary
SpeechSetCommand(java.lang.String name, java.lang.String value)
          Creates a new SpeechSetCommand that sets the setting indicated by name to the given value.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getName()
          Returns the name of the setting to set.
 java.lang.String getValue()
          Returns the value to set.
 void setName(java.lang.String name)
          Sets the name of the setting to set.
 void setValue(java.lang.String value)
          Sets the value 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

SpeechSetCommand

public SpeechSetCommand(java.lang.String name,
                        java.lang.String value)
Creates a new SpeechSetCommand that sets the setting indicated by name to the given value.

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

getName

public java.lang.String getName()
Returns the name of the setting to set.

Returns:
the name of the setting to set.

setName

public void setName(java.lang.String name)
Sets the name of the setting to set.

Parameters:
name - the name of the setting 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.