org.jvoicexml.documentserver.schemestrategy
Interface MappedDocumentRepository

All Known Implementing Classes:
DocumentMap, MappedDocumentRepositoryStub

public interface MappedDocumentRepository

Simple VoiceXML document repository based on a map mechanism.

Documents are stored in the map with their URI as a key. This URI defines it's own scheme jvxmlmap.

Main purpose of this repository is to have an easy and lightweight in-memory repository for fast tests.

Version:
$Revision: 148 $

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

Author:
Dirk Schnelle

Method Summary
 void addDocument(URI uri, String document)
          Adds the given document to this repository.
 void addDocument(URI uri, VoiceXmlDocument document)
          Adds the given document to this repository.
 URI getUri(String ssp)
          Gets an URI that can be evaluated by this scheme strategy for the given ssp.
 

Method Detail

getUri

URI getUri(String ssp)
Gets an URI that can be evaluated by this scheme strategy for the given ssp.

Parameters:
ssp - Scheme specific part
Returns:
Valid URI for this strategy, null in case of an error.

addDocument

void addDocument(URI uri,
                 String document)
Adds the given document to this repository.

Parameters:
uri - URI as a key for later retrieval.
document - Document to be added.

addDocument

void addDocument(URI uri,
                 VoiceXmlDocument document)
Adds the given document to this repository.

Parameters:
uri - URI as a key for later retrieval.
document - Document to be added.


Copyright © 2005-2007 JVoiceXML group.