public class CacheTag
extends neo.taglib.template.TemplateBodyTagSupport
implements javax.servlet.jsp.tagext.TryCatchFinally
Modifier and Type | Field and Description |
---|---|
static String |
JSPCACHE |
APPLICATION_SCOPE, BROWSER, COM_ESCENIC_STALE, DEFAULT_STRINGBUFFER_SIZE, EMPTY_STRING, LARGE_STRINGBUFFER_SIZE, LOGGER, PAGE_SCOPE, PUBLISHED, REQUEST_SCOPE, SESSION_SCOPE
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
COM_ESCENIC_NOCACHE, REQUEST_CATALOG_INSTANCE, REQUEST_PRESENTATION_USER_INSTANCE, REQUEST_PRESENTATIONARTICLE_INSTANCE, REQUEST_PRESENTATIONPOOL_INSTANCE, REQUEST_PRESENTATIONPROFILE_INSTANCE, REQUEST_PUBLICATION_INSTANCE, REQUEST_SECTION_INSTANCE, REQUEST_SECTIONTREE_INSTANCE
Constructor and Description |
---|
CacheTag() |
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
After the body evaluation: Do not reevaluate and continue with the page.
|
void |
doCatch(Throwable t) |
void |
doFinally() |
int |
doStartTag()
Default processing of the start tag returning
BodyTag.EVAL_BODY_BUFFERED . |
protected DependentCache |
getDependentCache() |
String |
getId() |
void |
release()
Release state.
|
void |
setBlocking(String blocking) |
void |
setBlockingTimeout(String timeout) |
void |
setExpireTime(String newExpireTime)
Sets the how long we will wait until the cached items are expired from
the cache.
|
void |
setIncludeArticle(String pIncludeArticle) |
void |
setIncludeSection(String pIncludeSection) |
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
getDefaultPresentationArticle, getDefaultPresentationPool, getDefaultPublication, getDefaultSection, getPresentationLoader, getSectionTree, getTemplateNameFor, popDefaultObject, print, pushDefaultObject
allowStale, convertToScope, getAPI, getJspPath, getName, getObjectByProperty, getProperty, getServletContext, getSpecifiedObject, getSpecifiedObject, getSpecifiedObject, getToScope, isLoggingEnabled, setName, setProperty, setToScope
findAncestorWithClass, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public static final String JSPCACHE
public String getId()
getId
in class javax.servlet.jsp.tagext.TagSupport
public void setExpireTime(String newExpireTime)
Sets the how long we will wait until the cached items are expired from the cache. The time is by default in minutes. You can changed that to seconds, minutes or hour by adding a s,m or h after wanted time.
e.g. 120s means 120 s and 2h means 2 hours
newExpireTime
- the time to wait until the cached object is expiredpublic void setBlockingTimeout(String timeout)
public void setBlocking(String blocking)
public void setIncludeSection(String pIncludeSection)
public void setIncludeArticle(String pIncludeArticle)
protected DependentCache getDependentCache() throws Exception
Exception
public int doStartTag() throws javax.servlet.jsp.JspException
neo.taglib.template.TemplateBodyTagSupport
BodyTag.EVAL_BODY_BUFFERED
.doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class neo.taglib.template.TemplateBodyTagSupport
BodyTag.EVAL_BODY_BUFFERED
javax.servlet.jsp.JspException
- if an error occurred while processing this tag.public int doAfterBody() throws javax.servlet.jsp.JspException
neo.taglib.template.TemplateBodyTagSupport
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class neo.taglib.template.TemplateBodyTagSupport
Tag.SKIP_BODY
¨javax.servlet.jsp.JspException
- if an error occurred while processing this tag.public void doCatch(Throwable t) throws Throwable
doCatch
in interface javax.servlet.jsp.tagext.TryCatchFinally
Throwable
public void doFinally()
doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
public void release()
neo.taglib.template.TemplateBodyTagSupport
release
in interface javax.servlet.jsp.tagext.Tag
release
in class neo.taglib.template.TemplateBodyTagSupport
© 1998- 2021 Escenic AS