Class 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.TryCatchFinally
    Superclass for all tags that require a Activity.

    Created: 2020/05/31

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Logger logger
      Logger available to subclasses.
      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void doCatch​(java.lang.Throwable throwable)  
      void doFinally()  
      int doStartTag()
      Create and expose the current RequestContext.
      protected abstract int doStartTagInternal()
      Called by doStartTag to perform the actual work.
      protected Activity getCurrentActivity()
      Return the current Activity.
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected final Logger logger
        Logger available to subclasses.
    • Constructor Detail

      • CurrentActivityAwareTag

        public CurrentActivityAwareTag()
    • Method Detail

      • doStartTag

        public final int doStartTag()
                             throws javax.servlet.jsp.JspException
        Create and expose the current RequestContext. Delegates to doStartTagInternal() for actual work.
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.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.Exception
        Called 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:
        doCatch in interface javax.servlet.jsp.tagext.TryCatchFinally
        Throws:
        java.lang.Throwable
      • doFinally

        public void doFinally()
        Specified by:
        doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally