public interface MappedDocumentRepository
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.
| Modifier and Type | Method and Description |
|---|---|
void |
addDocument(java.net.URI uri,
java.lang.String document)
Adds the given document to this repository.
|
void |
addDocument(java.net.URI uri,
org.jvoicexml.xml.vxml.VoiceXmlDocument document)
Adds the given document to this repository.
|
java.net.URI |
getUri(java.lang.String path)
Gets an URI that can be evaluated by this scheme strategy for the
given path.
|
java.net.URI getUri(java.lang.String path)
throws java.net.URISyntaxException
path - path of the document, must be an absolute path.null in case of an
error.java.net.URISyntaxException - if the path can not be converted to a valid URI.void addDocument(java.net.URI uri,
java.lang.String document)
uri - URI as a key for later retrieval.document - Document to be added.void addDocument(java.net.URI uri,
org.jvoicexml.xml.vxml.VoiceXmlDocument document)
uri - URI as a key for later retrieval.document - Document to be added.