public class DataCache extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
DataCache.DocumentData
This class represents everything we need to know about a document that's getting passed from the
getDocumentVersions() phase to the processDocuments() phase.
|
Modifier and Type | Field and Description |
---|---|
static String |
_rcsid |
protected Map<String,DataCache.DocumentData> |
cacheData |
Constructor and Description |
---|
DataCache()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
addData(IVersionActivity activities,
String documentIdentifier,
IThrottledConnection connection)
Add a data entry into the cache.
|
void |
deleteData(String documentIdentifier)
Delete specified item of data.
|
String |
getContentType(String documentIdentifier)
Get the content type.
|
InputStream |
getData(String documentIdentifier)
Fetch binary data entry from the cache.
|
long |
getDataLength(String documentIdentifier)
Fetch binary data length.
|
String |
getReferralURI(String documentIdentifier)
Get the referral URI.
|
int |
getResponseCode(String documentIdentifier)
Get the response code.
|
public static final String _rcsid
protected Map<String,DataCache.DocumentData> cacheData
public String addData(IVersionActivity activities, String documentIdentifier, IThrottledConnection connection) throws ManifoldCFException, ServiceInterruption
documentIdentifier
- is the document identifier (url).connection
- is the connection, upon which a fetch has been done that needs to be
cached.ManifoldCFException
ServiceInterruption
public int getResponseCode(String documentIdentifier)
documentIdentifier
- is the document identifier.public String getContentType(String documentIdentifier)
documentIdentifier
- is the document identifier.public String getReferralURI(String documentIdentifier)
documentIdentifier
- is the document identifier.public long getDataLength(String documentIdentifier)
documentIdentifier
- is the document identifier.public InputStream getData(String documentIdentifier) throws ManifoldCFException
documentIdentifier
- is the document identifier (url).ManifoldCFException
public void deleteData(String documentIdentifier)
documentIdentifier
- is the document identifier (url).