org.jvoicexml.documentserver.schemestrategy
Class FileSchemeStrategy

java.lang.Object
  extended by org.jvoicexml.documentserver.schemestrategy.FileSchemeStrategy
All Implemented Interfaces:
SchemeStrategy

public final class FileSchemeStrategy
extends Object
implements SchemeStrategy

SchemeStrategy to read VoiceXML doucment from the file system. The files are retrieved by their URI, which has to be hierarchical.

Since:
0.3
Version:
$Revision: 148 $
Author:
Dirk Schnelle
See Also:

Copyright © 2005 JVoiceXML group - http://jvoicexml.sourceforge.net/


Field Summary
static String SCHEME_NAME
          Scheme for which this scheme strategy is repsonsible.
 
Constructor Summary
FileSchemeStrategy()
          Construct a new object.
 
Method Summary
 InputStream getInputStream(URI uri)
          Opens the external URI and returns an InputStream to the referenced object.
 String getScheme()
          Get the schme that is handled by this strategy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEME_NAME

public static final String SCHEME_NAME
Scheme for which this scheme strategy is repsonsible.

See Also:
Constant Field Values
Constructor Detail

FileSchemeStrategy

public FileSchemeStrategy()
Construct a new object.

Method Detail

getScheme

public String getScheme()
Get the schme that is handled by this strategy.

Specified by:
getScheme in interface SchemeStrategy
Returns:
Scheme that is handled by this strategy.

getInputStream

public InputStream getInputStream(URI uri)
                           throws BadFetchError
Opens the external URI and returns an InputStream to the referenced object.

Specified by:
getInputStream in interface SchemeStrategy
Parameters:
uri - The uri of the object to oben.
Returns:
InputStream to the referenced object.
Throws:
BadFetchError - Error opening the document.


Copyright © 2005-2007 JVoiceXML group.