public final class DocumentMap extends java.lang.Object implements MappedDocumentRepository
MappedDocumentRepository.| 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.lang.String |
getDocument(java.net.URI uri)
Gets the document with the given URI.
|
static DocumentMap |
getInstance()
Gets the singleton.
|
java.net.URI |
getUri(java.lang.String path)
Gets an URI that can be evaluated by this scheme strategy for the
given path.
|
public static DocumentMap getInstance()
public java.net.URI getUri(java.lang.String path)
throws java.net.URISyntaxException
getUri in interface MappedDocumentRepositorypath - 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.public void addDocument(java.net.URI uri,
java.lang.String document)
addDocument in interface MappedDocumentRepositoryuri - URI as a key for later retrieval.document - Document to be added.public void addDocument(java.net.URI uri,
org.jvoicexml.xml.vxml.VoiceXmlDocument document)
addDocument in interface MappedDocumentRepositoryuri - URI as a key for later retrieval.document - Document to be added.public java.lang.String getDocument(java.net.URI uri)
throws BadFetchError
uri - URI of the document.null if
there is no such document or in case of an error.BadFetchError - There is no such document.