Asterisk-Java

org.asteriskjava.fastagi.command
Class SpeechLoadGrammarCommand

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

public class SpeechLoadGrammarCommand
extends AbstractAgiCommand

Loads the specified grammar as the specified name.

Available since Asterisk 1.6.

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

Constructor Summary
SpeechLoadGrammarCommand(java.lang.String name, java.lang.String path)
          Creates a new SpeechLoadGrammarCommand that loads the grammer from the given path and makes it available under the given name.
 
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.
 java.lang.String getPath()
          Returns the path to the grammar.
 void setName(java.lang.String name)
          Sets the name of the grammar, used to activate the gammer later.
 void setPath(java.lang.String path)
          Sets the path to 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

SpeechLoadGrammarCommand

public SpeechLoadGrammarCommand(java.lang.String name,
                                java.lang.String path)
Creates a new SpeechLoadGrammarCommand that loads the grammer from the given path and makes it available under the given name.

Parameters:
name - the name of the grammar, used to activate the gammer later.
path - the path to 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, used to activate the gammer later.

Parameters:
name - the name of the grammar.

getPath

public java.lang.String getPath()
Returns the path to the grammar.

Returns:
the path to the grammar.

setPath

public void setPath(java.lang.String path)
Sets the path to the grammar.

Parameters:
path - the path to 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.