Package com.aspectran.web.support.tags
Class CurrentActivityAwareTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- com.aspectran.web.support.tags.CurrentActivityAwareTag
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.TryCatchFinally
- Direct Known Subclasses:
HtmlEscapeTag,HtmlEscapingAwareTag
public abstract class CurrentActivityAwareTag extends javax.servlet.jsp.tagext.TagSupport implements javax.servlet.jsp.tagext.TryCatchFinallySuperclass for all tags that require aActivity.Created: 2020/05/31
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CurrentActivityAwareTag()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddoCatch(java.lang.Throwable throwable)voiddoFinally()intdoStartTag()Create and expose the current RequestContext.protected abstract intdoStartTagInternal()Called by doStartTag to perform the actual work.protected ActivitygetCurrentActivity()Return the current Activity.
-
-
-
Field Detail
-
logger
protected final Logger logger
Logger available to subclasses.
-
-
Method Detail
-
doStartTag
public final int doStartTag() throws javax.servlet.jsp.JspExceptionCreate and expose the current RequestContext. Delegates todoStartTagInternal()for actual work.- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException
-
getCurrentActivity
protected final Activity getCurrentActivity()
Return the current Activity.
-
doStartTagInternal
protected abstract int doStartTagInternal() throws java.lang.ExceptionCalled by doStartTag to perform the actual work.- Returns:
- same as TagSupport.doStartTag
- Throws:
java.lang.Exception- any exception, any checked one other than a JspException gets wrapped in a JspException by doStartTag- See Also:
TagSupport.doStartTag()
-
doCatch
public void doCatch(java.lang.Throwable throwable) throws java.lang.Throwable- Specified by:
doCatchin interfacejavax.servlet.jsp.tagext.TryCatchFinally- Throws:
java.lang.Throwable
-
doFinally
public void doFinally()
- Specified by:
doFinallyin interfacejavax.servlet.jsp.tagext.TryCatchFinally
-
-