public class CacheTag
extends javax.servlet.jsp.tagext.BodyTagSupport
| Constructor and Description |
|---|
CacheTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody()
doAfterBody is called only if the body was evaluated.
|
int |
doEndTag()
doEndTag just resets all the valiables in case the tag is reused
|
int |
doStartTag()
doStartTag is called every time the cache tag is encountered.
|
void |
setKey(String key)
This is used to set a user-defined key to store the response in
the cache.
|
void |
setNocache(boolean noCache)
This attribute is used to programmatically enable or disable the use
of the cached response.
|
void |
setRefresh(boolean refresh)
This attribute is used to programmatically refresh the cached
response.
|
void |
setScope(String scope)
Sets the scope of the cache.
|
void |
setTimeout(String timeout)
This sets the time for which the cached response is valid.
|
doInitBody, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - the standard exception thrownpublic int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - the standard exception thrownpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - the standard exception thrownpublic void setKey(String key)
public void setTimeout(String timeout)
public void setNocache(boolean noCache)
public void setRefresh(boolean refresh)
public void setScope(String scope)
scope - the scope of the cacheIllegalArgumentException - if the specified scope is different
from request, session, and applicationCopyright © 2017. All rights reserved.