public final class FileSchemeStrategy extends java.lang.Object implements SchemeStrategy
SchemeStrategy to read VoiceXML document from the file system.
The files are retrieved by their URI which has to be
hierarchical.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SCHEME_NAME
Scheme for which this scheme strategy is responsible.
|
| Constructor and Description |
|---|
FileSchemeStrategy()
Construct a new object.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream(java.lang.String sessionId,
java.net.URI uri,
org.jvoicexml.xml.vxml.RequestMethod method,
long timeout,
java.util.Collection<KeyValuePair> parameters)
Opens the external URI and returns an
InputStream to the
referenced object. |
java.lang.String |
getScheme()
Get the scheme that is handled by this strategy.
|
void |
sessionClosed(java.lang.String sessionId)
Notification that the given session is closed.
|
public static final java.lang.String SCHEME_NAME
public java.lang.String getScheme()
getScheme in interface SchemeStrategypublic java.io.InputStream getInputStream(java.lang.String sessionId,
java.net.URI uri,
org.jvoicexml.xml.vxml.RequestMethod method,
long timeout,
java.util.Collection<KeyValuePair> parameters)
throws BadFetchError
InputStream to the
referenced object.getInputStream in interface SchemeStrategysessionId - the Id of the current JVoiceXML session.uri - the URI of the object to open.method - type of the request methodtimeout - fetch timeout in msec to wait for the content to be returned
before throwing an error.badfetch event.parameters - request parametersInputStream to the referenced object.BadFetchError - error opening the document or unsupported method typepublic void sessionClosed(java.lang.String sessionId)
sessionClosed in interface SchemeStrategysessionId - the Id of the current JVoiceXML session.