ContentTagSupport Class
- public class ContentTagSupport
extends TagSupport
Base Tag class for tags which deal with Content.
This provides access to the ContentCache.
-
Hierarchy
-
Object
TagSupport
TagSupport
ContentTagSupport
-
All Implemented Interfaces
-
IterationTag, Serializable, Tag
-
Direct Known Subclasses
-
ContentQueryTag, ContentSelectorTag
Methods from javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cacheId
protected String cacheId
- The cache id.
cacheScope
protected String cacheScope
- The cache scope.
cacheTimeout
protected long cacheTimeout
- The cache timeout.
contextParams
protected Map contextParams
- The context params.
useCache
protected boolean useCache
- Should this try to use the cache.
ContentTagSupport
public ContentTagSupport()
checkContentCache() Method
protected Node[] checkContentCache()
Check the content cache for the requested Content.
This will use the useCache,
cacheScope, cacheId,
and cacheTimeout settings.
Returns
- the Content[] if it lives in the cache or has timedout,
null if not.
getCacheId() Method
public String getCacheId()
Get cacheId which should be used.
getCacheScope() Method
public String getCacheScope()
Get the ContentTagSupport.cacheScope.
getCacheTimeout() Method
public String getCacheTimeout()
Get the value of ContentTagSupport.cacheTimeout.
getContextParams() Method
public Map getContextParams()
Get the context params.
getUseCache() Method
public String getUseCache()
Get the value of ContentTagSupport.useCache.
initRepositoryManager() Method
protected void initRepositoryManager()
release() Method
public void release()
Reset any variables.
-
Overrides
-
TagSupport.release()
setCacheId(String) Method
public void setCacheId(String s)
Set the value of ContentTagSupport.cacheId.
setCacheScope(String) Method
public void setCacheScope(String s)
Set the ContentTagSupport.cacheScope.
setCacheTimeout(String) Method
public void setCacheTimeout(String v)
Set the value of ContentTagSupport.cacheTimeout.
setCacheTimeout(long) Method
public void setCacheTimeout(long l)
Set the value of ContentTagSupport.cacheTimeout.
setContextParams(String) Method
public void setContextParams(String str)
Set the context params from semi-colon separate list of name=value
pairs.
setContextParams(Map) Method
public void setContextParams(Map m)
Set the context params.
setInContentCache(Node[]) Method
public void setInContentCache(Node[] content)
Update the content cache with the specified content.
setUseCache(String) Method
public void setUseCache(String s)
Set the value of ContentTagSupport.useCache.
setUseCache(boolean) Method
public void setUseCache(boolean b)
Set the value of ContentTagSupport.useCache.