org.jvoicexml.documentserver
Interface SchemeStrategy

All Known Implementing Classes:
FileSchemeStrategy, HttpSchemeStrategy, MappedDocumentStrategy

public interface SchemeStrategy

Strategy to get a VoiceXML document from a repository for a given URI scheme.

A SchemeStrategy is responsible for only one scheme, i.e. http. They have to register at the DocumentServer via the method DocumentServer.addSchemeStrategy(SchemeStrategy).

Version:
$Revision: 147 $

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

Author:
Dirk Schnelle

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.
 

Method Detail

getScheme

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

Returns:
Scheme that is handled by this strategy.

getInputStream

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

Parameters:
uri - The uri of the object to oben.
Returns:
InputStream to the referenced object.
Throws:
BadFetchError - Error opening the document.
Since:
0.3


Copyright © 2005-2007 JVoiceXML group.