|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.asteriskjava.fastagi.command.AbstractAgiCommand
org.asteriskjava.fastagi.command.SpeechLoadGrammarCommand
public class SpeechLoadGrammarCommand
Loads the specified grammar as the specified name.
Available since Asterisk 1.6.
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 |
|---|
public SpeechLoadGrammarCommand(java.lang.String name,
java.lang.String path)
name - the name of the grammar, used to activate the gammer later.path - the path to the grammar.| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the grammar.public java.lang.String getPath()
public void setPath(java.lang.String path)
path - the path to the grammar.public java.lang.String buildCommand()
AgiCommand
buildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommand
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||