|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentServer
A document server processes requests from a client application.
| Field Summary | |
|---|---|
static String |
TEXT_PLAIN
Constant for the object type text/plain to retrieve. |
static String |
TEXT_XML
Constant for the object type text/xml to retrieve. |
| Method Summary | |
|---|---|
AudioInputStream |
getAudioInputStream(String sessionId,
URI uri)
Retrieves an AudioStream to the audio file with the given
URI. |
VoiceXmlDocument |
getDocument(String sessionId,
DocumentDescriptor descriptor)
Gets the document with the given URI. |
GrammarDocument |
getGrammarDocument(String sessionId,
URI uri,
FetchAttributes attributes)
Returns the external Grammar referenced by URI. |
Object |
getObject(String sessionId,
DocumentDescriptor descriptor,
String type)
Retrieves an object of the given type from the given URI. |
void |
sessionClosed(String sessionId)
Notification that the given session is closed. |
URI |
storeAudio(AudioInputStream in)
Stores the audio from the given stream. |
| Field Detail |
|---|
static final String TEXT_PLAIN
text/plain to retrieve.
static final String TEXT_XML
text/xml to retrieve.
| Method Detail |
|---|
VoiceXmlDocument getDocument(String sessionId,
DocumentDescriptor descriptor)
throws BadFetchError
sessionId - the Id of the current JVoiceXML sessiondescriptor - descriptor for the document to fetch.
BadFetchError - The URI does not reference a document or an error occurred
retrieving the document.
GrammarDocument getGrammarDocument(String sessionId,
URI uri,
FetchAttributes attributes)
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.
sessionId - the Id of the current JVoiceXML sessionuri - Where to find the grammar.attributes - attributes governing the fetch.
BadFetchError - The URI does not reference a document or an error occurred
retrieving the document.
AudioInputStream getAudioInputStream(String sessionId,
URI uri)
throws BadFetchError
AudioStream to the audio file with the given
URI.
sessionId - the Id of the current JVoiceXML sessionuri - URI of the audio file.
AudioInputStream for the audio file.
BadFetchError - Error retrieving the audio file.
Object getObject(String sessionId,
DocumentDescriptor descriptor,
String type)
throws BadFetchError
sessionId - the Id of the current JVoiceXML sessiondescriptor - descriptor for the document to fetch.type - the type, e.g. text/plain.
BadFetchError - Error retrieving the object.
URI storeAudio(AudioInputStream in)
throws BadFetchError
in - stream to read the audio data from
BadFetchError - Error writing.void sessionClosed(String sessionId)
sessionId - the Id of the current JVoiceXML session.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||