Class FlushTag
- java.lang.Object
-
- jakarta.servlet.jsp.tagext.TagSupport
-
- com.sun.appserv.web.taglibs.cache.FlushTag
-
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag
,jakarta.servlet.jsp.tagext.JspTag
,jakarta.servlet.jsp.tagext.Tag
,Serializable
public class FlushTag extends jakarta.servlet.jsp.tagext.TagSupport
FlushTag is a JSP tag that is used with the CacheTag. The FlushTag allows you to invalidate a complete cache or a particular cache element identified by the key. Usage Example: <%@ taglib prefix="ias" uri="Sun ONE Application Server Tags" %>- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlushTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
doEndTag just resets all the valiables in case the tag is reusedint
doStartTag()
doStartTag is called when the flush tag is encountered.void
setKey(String key)
This is set a key for the cache element that needs to be clearedvoid
setScope(String scope)
Sets the scope of the cache.
-
-
-
Method Detail
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspException
doStartTag is called when the flush tag is encountered. By the time this is called, the tag attributes are already set.- Specified by:
doStartTag
in interfacejakarta.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjakarta.servlet.jsp.tagext.TagSupport
- Returns:
- SKIP_BODY since the tag should be empty
- Throws:
jakarta.servlet.jsp.JspException
- the standard exception thrown
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspException
doEndTag just resets all the valiables in case the tag is reused- Specified by:
doEndTag
in interfacejakarta.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjakarta.servlet.jsp.tagext.TagSupport
- Returns:
- always returns EVAL_PAGE since we want the entire jsp evaluated
- Throws:
jakarta.servlet.jsp.JspException
- the standard exception thrown
-
setKey
public void setKey(String key)
This is set a key for the cache element that needs to be cleared
-
setScope
public void setScope(String scope)
Sets the scope of the cache.- Parameters:
scope
- the scope of the cache- Throws:
IllegalArgumentException
- if the specified scope is different from request, session, and application
-
-