|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.documentserver.JVoiceXmlDocumentServer
public final class JVoiceXmlDocumentServer
Basic implementation of a DocumentServer.
Copyright © 2005-2006 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary |
|---|
| Fields inherited from interface org.jvoicexml.DocumentServer |
|---|
CONFIG_KEY |
| Constructor Summary | |
|---|---|
JVoiceXmlDocumentServer()
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
addSchemeStrategy(SchemeStrategy strategy)
Adds the given scheme strategy. |
AudioInputStream |
getAudioInputStream(URI uri)
Retrieves an AudioStream to the audio file with the given
URI. |
VoiceXmlDocument |
getDocument(URI uri)
Gets the document with the given URI. |
GrammarDocument |
getGrammarDocument(URI uri)
Returns the external Grammar referenced by URI. |
void |
setSchemeStrategies(List<SchemeStrategy> schemeStrategies)
Adds the given list of strategies for schemes to the supported schemes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JVoiceXmlDocumentServer()
This method should not be called by any application. Use
JVoiceXml.getDocumentServer() to obtain a reference to the
document server.
| Method Detail |
|---|
public void setSchemeStrategies(List<SchemeStrategy> schemeStrategies)
schemeStrategies - List with strategies.
public VoiceXmlDocument getDocument(URI uri)
throws BadFetchError
getDocument in interface DocumentServeruri - URI of the document.
BadFetchError - The URI does not reference a document or an error occurred
retrieving the document.public void addSchemeStrategy(SchemeStrategy strategy)
strategy - Scheme strategy to be added.
public GrammarDocument getGrammarDocument(URI uri)
throws BadFetchError
URI.
If more than one grammar is available at the given URI, the grammar with the optional type is preferred. If preferredType is null, the ContentServer does not have to care about the preferredType.
getGrammarDocument in interface DocumentServeruri - Where to find the grammar.
BadFetchError - The URI does not reference a document or an error occurred
retrieving the document.
public AudioInputStream getAudioInputStream(URI uri)
throws BadFetchError
AudioStream to the audio file with the given
URI.
getAudioInputStream in interface DocumentServeruri - URI of the audio file.
AudioInputStream for the audio file.
BadFetchError - Error retrieving the audio file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||