|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
org.mmbase.util.LRUHashtable
org.mmbase.cache.Cache
org.mmbase.cache.xslt.ResultCache
Caches the results of XSL transformations.
| Nested Class Summary |
| Nested classes inherited from class org.mmbase.util.LRUHashtable |
LRUHashtable.LRUEntry, LRUHashtable.LRUEntrySet, LRUHashtable.LRUEntrySetIterator |
| Field Summary |
| Fields inherited from class org.mmbase.cache.Cache |
maxEntrySize |
| Method Summary | |
java.lang.String |
get(javax.xml.transform.Templates temp,
javax.xml.transform.Source xsl,
java.util.Map params,
java.util.Properties props,
org.w3c.dom.Document src)
This is an intelligent get, which also does the put if it cannot find the requested result. |
static ResultCache |
getCache()
Returns the XSLT Result cache. |
protected int |
getDefaultMaxEntrySize()
This has to be overridden by Caches which support max entry size. |
java.lang.String |
getDescription()
Gives a description for this cache type. |
java.lang.String |
getName()
Returns a name for this cache type. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
You can only put Source/Templates values in the cache, so this throws an Exception. |
| Methods inherited from class org.mmbase.cache.Cache |
get, getByteSize, getByteSize, getCache, getCaches, getMaxEntrySize, getTotalByteSize, isActive, main, putCache, putCache, setActive |
| Methods inherited from class org.mmbase.util.LRUHashtable |
clear, clone, elements, entrySet, getCount, getHits, getMisses, getOrderedElements, getOrderedElements, getOrderedEntries, getOrderedEntries, getPuts, getRatio, getSize, getStats, keySet, remove, setSize, size, toString, toString, values |
| Methods inherited from class java.util.Hashtable |
contains, containsKey, containsValue, equals, hashCode, isEmpty, keys, putAll, rehash |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
protected int getDefaultMaxEntrySize()
Cache
getDefaultMaxEntrySize in class Cachepublic static ResultCache getCache()
public java.lang.String getName()
Cache
getName in class Cachepublic java.lang.String getDescription()
Cache
getDescription in class Cache
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class Cachejava.lang.RuntimeException
public java.lang.String get(javax.xml.transform.Templates temp,
javax.xml.transform.Source xsl,
java.util.Map params,
java.util.Properties props,
org.w3c.dom.Document src)
temp - The Templates from which the transformer must be created (if necessary)xsl - The XSL Source. This only used to produce the key, because with the Templates it
is difficultparams - Parameters for the XSL Transformationsrc - The Document which must be transformed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||