Asterisk-Java

org.asteriskjava.fastagi.command
Class SpeechActivateGrammarCommand

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

public class SpeechActivateGrammarCommand
extends AbstractAgiCommand

Activates the specified grammar.

Available since Asterisk 1.6.

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

Constructor Summary
SpeechActivateGrammarCommand(java.lang.String name)
          Creates a new SpeechActivateGrammarCommand that acitvates the given grammer.
 
Method Summary
 java.lang.String buildCommand()
          Returns a string suitable to be sent to asterisk.
 java.lang.String getName()
          Returns the name of the grammar.
 void setName(java.lang.String name)
          Sets the name of the grammar.
 
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

SpeechActivateGrammarCommand

public SpeechActivateGrammarCommand(java.lang.String name)
Creates a new SpeechActivateGrammarCommand that acitvates the given grammer.

Parameters:
name - the name of the grammar.
Method Detail

getName

public java.lang.String getName()
Returns the name of the grammar.

Returns:
the name of the grammar.

setName

public void setName(java.lang.String name)
Sets the name of the grammar.

Parameters:
name - the name of the grammar.

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.