org.jvoicexml.documentserver.schemestrategy
Class MappedDocumentStrategy

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

public final class MappedDocumentStrategy
extends Object
implements SchemeStrategy

Scheme strategy for the MapedDocumentRepository.

Version:
$Revision: 148 $

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

Author:
Dirk Schnelle

Field Summary
static String SCHEME_NAME
          Scheme for which this scheme strategy is repsonsible.
 
Constructor Summary
MappedDocumentStrategy()
          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

MappedDocumentStrategy

public MappedDocumentStrategy()
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.