|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.documentserver.schemestrategy.FileSchemeStrategy
public final class FileSchemeStrategy
SchemeStrategy to read VoiceXML document from the file system.
The files are retrieved by their URI which has to be
hierarchical.
| Field Summary | |
|---|---|
static String |
SCHEME_NAME
Scheme for which this scheme strategy is responsible. |
| Constructor Summary | |
|---|---|
FileSchemeStrategy()
Construct a new object. |
|
| Method Summary | |
|---|---|
InputStream |
getInputStream(String sessionId,
URI uri,
RequestMethod method,
long timeout,
Map<String,Object> parameters)
Opens the external URI and returns an InputStream to the
referenced object. |
String |
getScheme()
Get the scheme that is handled by this strategy. |
void |
sessionClosed(String sessionId)
Notification that the given session is closed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SCHEME_NAME
| Constructor Detail |
|---|
public FileSchemeStrategy()
| Method Detail |
|---|
public String getScheme()
getScheme in interface SchemeStrategy
public InputStream getInputStream(String sessionId,
URI uri,
RequestMethod method,
long timeout,
Map<String,Object> 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 parameters
InputStream to the referenced object.
BadFetchError - error opening the document or unsupported method typepublic void sessionClosed(String sessionId)
sessionClosed in interface SchemeStrategysessionId - the Id of the current JVoiceXML session.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||