| java.lang.Object org.onemind.jxp.JxpPageSource org.onemind.jxp.CachingPageSource
All known Subclasses: org.onemind.jxp.FilePageSource, org.onemind.jxp.ByteArrayPageSource, org.onemind.jxp.ResourceStreamPageSource,
CachingPageSource | abstract public class CachingPageSource extends JxpPageSource (Code) | | A caching page source will cache the page source
author: TiongHiang Lee (thlee@onemindsoft.org) |
CachingPageSource | public CachingPageSource()(Code) | | Constructor
(default use 200 cache limit, unlimit timeout)
|
CachingPageSource | public CachingPageSource(int cacheSize)(Code) | | Constructor
Parameters: cacheSize - The default cache size |
CachingPageSource | public CachingPageSource(int cacheSize, int timeout)(Code) | | Constructor
Parameters: cacheSize - The default cache size Parameters: timeout - time to expire inactive cache |
declarePageStaticVariable | final Object declarePageStaticVariable(JxpPage page, String name, Object value)(Code) | | Declare a page static variable
Parameters: page - the page Parameters: name - the name Parameters: value - the value |
getEncoding | final public String getEncoding()(Code) | | Return the encoding
the encoding |
getPageStaticVariable | final Object getPageStaticVariable(JxpPage page, String name)(Code) | | Get the page static variable
Parameters: page - the page Parameters: name - the nama the value |
hasPageStaticVariable | final boolean hasPageStaticVariable(JxpPage page, String name)(Code) | | Return whether there's a variable declared
Parameters: page - the page Parameters: name - the name true if declared |
hasStream | abstract protected boolean hasStream(String pageName)(Code) | | Whether there's input stream from given page name
Parameters: pageName - the page name true if has input stream |
invalidatePageCache | final protected void invalidatePageCache(JxpPage page)(Code) | | Invalidate the page cache
Parameters: page - the page |
isCaching | final public boolean isCaching()(Code) | | Return whether this is doing caching
true if caching |
isExpired | abstract protected boolean isExpired(CachedJxpPage page)(Code) | | Whether a page is expired
Parameters: page - the page true if expired |
isJxpPageCached | final public boolean isJxpPageCached(String id)(Code) | | Whehter the page identified by id is cached
Parameters: id - the id true if cached |
purgeStaticVariables | final protected void purgeStaticVariables(CachedJxpPage page)(Code) | | Purge the static variables for a page
Parameters: page - the page |
setCaching | final public void setCaching(boolean b)(Code) | | Set caching on/off
Parameters: b - true if caching on |
setEncoding | final public void setEncoding(String encoding)(Code) | | Set the encoding
Parameters: encoding - the encoding |
|
|