|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.interpreter.JVoiceXmlSession
public final class JVoiceXmlSession
Implementation of a Session.
Each session is started in a new thread.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Constructor Summary | |
|---|---|
JVoiceXmlSession(ImplementationPlatform ip,
JVoiceXmlCore jvxml)
Constructs a new object. |
|
| Method Summary | |
|---|---|
void |
call(URI uri)
Handles a call request. Starts this session in a new thread. |
void |
close()
Closes this session. |
CharacterInput |
getCharacterInput()
Retrieves the DTMF input device. |
DocumentServer |
getDocumentServer()
Retrieves a reference to the document server. |
GrammarProcessor |
getGrammarProcessor()
Retrieves a reference to the grammar processor. |
ImplementationPlatform |
getImplementationPlatform()
Retrieves a reference to the used implementation platform. |
ScopeObserver |
getScopeObserver()
Retrieves the scope observer for this session. |
ScriptingEngine |
getScriptingEngine()
Retrieves the scripting engine. |
String |
getSessionID()
Retrieves the universal unique identifier for this session. |
VoiceXmlInterpreterContext |
getVoiceXmlInterpreterContext()
Retrieve the VoiceXmlInterpreterContext related to this
session. |
void |
hangup()
Handles a hangup request. |
void |
run()
Starts this session in a new thread. |
void |
waitSessionEnd()
Delays until the session ends. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JVoiceXmlSession(ImplementationPlatform ip,
JVoiceXmlCore jvxml)
ip - The implementation platform.jvxml - The main object to retrieve further resources.| Method Detail |
|---|
public String getSessionID()
getSessionID in interface Session
public void call(URI uri)
throws ErrorEvent
Starts processing of the given application and returns immediately.
Starts this session in a new thread.
call in interface Sessionuri - URI of the first document to load.
ErrorEvent - Error initiating the call.public void hangup()
hangup in interface Session
public CharacterInput getCharacterInput()
throws NoresourceError
getCharacterInput in interface SessionNoresourceError - Input device is not available.
public void waitSessionEnd()
throws ErrorEvent
waitSessionEnd in interface SessionErrorEvent - Error processing the call.public void close()
If no hangup call was initiated, the session is aborted.
close in interface Sessionpublic void run()
run in interface Runnablepublic ImplementationPlatform getImplementationPlatform()
public DocumentServer getDocumentServer()
public GrammarProcessor getGrammarProcessor()
public VoiceXmlInterpreterContext getVoiceXmlInterpreterContext()
VoiceXmlInterpreterContext related to this
session.
public ScopeObserver getScopeObserver()
public ScriptingEngine getScriptingEngine()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||