|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wiris.plugin.storage.ContainerStorageAndCache
public class ContainerStorageAndCache
| Constructor Summary | |
|---|---|
ContainerStorageAndCache()
|
|
| Method Summary | |
|---|---|
java.lang.String |
codeDigest(java.lang.String content)
Given a content, computes a digest of it. |
java.lang.String |
decodeDigest(java.lang.String digest)
Given a computed digest, returns the respective content. |
void |
init(HttpServletRequest request,
java.util.Properties config)
Initializes the storage and cache system. |
byte[] |
retreiveData(java.lang.String digest)
Given a computed digest, returns the stored data associated with it. |
void |
storeData(java.lang.String digest,
byte[] stream)
Associates a data stream with a computed digest. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerStorageAndCache()
| Method Detail |
|---|
public void init(HttpServletRequest request,
java.util.Properties config)
StorageAndCache
init in interface StorageAndCacherequest - The servlet request.config - WIRIS plugin configuration loaded from configuration.ini.public java.lang.String codeDigest(java.lang.String content)
StorageAndCache
codeDigest in interface StorageAndCachepublic java.lang.String decodeDigest(java.lang.String digest)
StorageAndCacheStorageAndCache.codeDigest(java.lang.String).
decodeDigest in interface StorageAndCachedigest - A computed digest.
public byte[] retreiveData(java.lang.String digest)
StorageAndCache
retreiveData in interface StorageAndCachedigest - A computed digest.
public void storeData(java.lang.String digest,
byte[] stream)
StorageAndCache
storeData in interface StorageAndCachedigest - A computed digest.stream - The data to be stored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||