com.ibm.commerce.taglibs.rememberme.tag

Class IsRememberedUserTagSupport

  • java.lang.Object
    • javax.servlet.jsp.tagext.TagSupport
      • com.ibm.commerce.taglibs.rememberme.tag.IsRememberedUserTagSupport
  • 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:
    IsNotRememberedUserTagSupport, RememberMeCheckBoxTagSupport, RememberMeLogonFieldTagSupport


    public class IsRememberedUserTagSupport
    extends javax.servlet.jsp.tagext.TagSupport
    implements javax.servlet.jsp.tagext.TryCatchFinally
    This class defines JSTL tag support to include only the body of the tag when the current request is one of a remembered user. If the user is either a guest user or has been authenticated then the HTML within this tag will not be included. If the user is a remembered registered user then the HTML content will be included.
    See Also:
    Serialized Form
    • Field Summary

      • 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
    • Constructor Summary

      Constructors 
      Constructor and Description
      IsRememberedUserTagSupport()
      This is the default constructor for this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void doCatch(java.lang.Throwable throwable)
      The method handles caught exceptions.
      void doFinally()
      This method is an empty implementation.
      int doStartTag()
      This method determines whether the body of the JSTL tag is to be included.
      • 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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IsRememberedUserTagSupport

        public IsRememberedUserTagSupport()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • doCatch

        public void doCatch(java.lang.Throwable throwable)
                     throws java.lang.Throwable
        The method handles caught exceptions. When an exception occurs, the page should not be cached. This tag will indicate to the dynacache runtime not to cache this request.
        Specified by:
        doCatch in interface javax.servlet.jsp.tagext.TryCatchFinally
        Parameters:
        throwable - The exception that occured.
        Throws:
        java.lang.Throwable - The throwable object that was specified.
        See Also:
        TryCatchFinally.doCatch(java.lang.Throwable)
      • doFinally

        public void doFinally()
        This method is an empty implementation. It is required because of the interface definition of TryCatchFinally that this class implements.
        Specified by:
        doFinally in interface javax.servlet.jsp.tagext.TryCatchFinally
        See Also:
        TryCatchFinally.doFinally()
      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        This method determines whether the body of the JSTL tag is to be included. If the request is a remembered registered user then the result is to include the body of the JSTL tag. Otherwise the body of the JSTL tag will be skipped.
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.TagSupport
        Returns:
        This method returns whether the body of the tag should be included or not.
        Throws:
        javax.servlet.jsp.JspException - Declared by the signature of the base tag support.
        See Also:
        Tag.doStartTag()