public interface Retriever
Retriever provides access to document content, based upon a docid.| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getContent(java.lang.String docid)
Return an
InputStream that may be used to access content for the
document identified by docid. |
Document |
getMetaData(java.lang.String docid)
Return a
Document instance populated with meta-data for the
document identified by docid. |
java.io.InputStream getContent(java.lang.String docid)
throws RepositoryException
InputStream that may be used to access content for the
document identified by docid.docid - the document identifiernull if the
document has no content.RepositoryDocumentException - if there was a document-specific
error accessing the content, for instance the document does not
exist or should be skippedRepositoryException - if there was a problem accessing the document
repositoryDocument getMetaData(java.lang.String docid) throws RepositoryException
Document instance populated with meta-data for the
document identified by docid. The returned Document should
not include the document content. The meta-data should
minimally include the google:lastmodified Property.
It should also include the document google:mimetype Properties,
if readily available, to satisfy HEAD requests.RepositoryDocumentException - if there was a document-specific
error accessing the metadata, for instance the document does not
exist or should be skippedRepositoryException - if there was a problem accessing the document
repository