Class AbstractFeatureTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.ff4j.web.taglib.AbstractFeatureTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
Direct Known Subclasses:
FeatureTagDisable, FeatureTagEnable

public abstract class AbstractFeatureTag extends jakarta.servlet.jsp.tagext.TagSupport
Parent class for FF4J TagLib library.
Author:
Cedrick LUNVEN
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
    Error message constant.
    protected static final String
    Error message constant.

    Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport

    id, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Display an error message in tag.
    int
    protected boolean
    eval(FF4j ff4j, jakarta.servlet.jsp.PageContext pageContext)
     
    protected abstract boolean
    evalWithExecutionContext(FF4j ff4j, jakarta.servlet.jsp.PageContext pageContext, FlippingExecutionContext executionContext)
     
    Getter accessor for attribute 'featureid'.
    Getter accessor for attribute 'ff4jAttributeName'.
    int
    Getter accessor for attribute scope.
    Getter accessor for attribute var.
    boolean
    Getter accessor for attribute 'shareHttpSession'.
    void
     
    void
    setFeatureid(String featureid)
    Setter accessor for attribute 'featureid'.
    void
    setScope(int scope)
    Setter accessor for scope.
    void
    setShareHttpSession(boolean shareHttpSession)
    Setter accessor for attribute 'shareHttpSession'.
    void
    Setter accessor for var.

    Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

    doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • AbstractFeatureTag

      public AbstractFeatureTag()
  • Method Details

    • displayError

      protected void displayError(String message) throws IOException
      Display an error message in tag.
      Parameters:
      message - target message
      Throws:
      IOException - error
    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class jakarta.servlet.jsp.tagext.TagSupport
      Throws:
      jakarta.servlet.jsp.JspException
    • eval

      protected boolean eval(FF4j ff4j, jakarta.servlet.jsp.PageContext pageContext)
    • evalWithExecutionContext

      protected abstract boolean evalWithExecutionContext(FF4j ff4j, jakarta.servlet.jsp.PageContext pageContext, FlippingExecutionContext executionContext)
    • getFeatureid

      public String getFeatureid()
      Getter accessor for attribute 'featureid'.
      Returns:
      current value of 'featureid'
    • setFeatureid

      public void setFeatureid(String featureid)
      Setter accessor for attribute 'featureid'.
      Parameters:
      featureid - new value for 'featureid '
    • getFf4jAttributeName

      public String getFf4jAttributeName()
      Getter accessor for attribute 'ff4jAttributeName'.
      Returns:
      current value of 'ff4jAttributeName'
    • isShareHttpSession

      public boolean isShareHttpSession()
      Getter accessor for attribute 'shareHttpSession'.
      Returns:
      current value of 'shareHttpSession'
    • setShareHttpSession

      public void setShareHttpSession(boolean shareHttpSession)
      Setter accessor for attribute 'shareHttpSession'.
      Parameters:
      shareHttpSession - new value for 'shareHttpSession '
    • getVar

      public String getVar()
      Getter accessor for attribute var.
      Returns:
      current value of var
    • setVar

      public void setVar(String var)
      Setter accessor for var.
      Parameters:
      var - new value for var
    • getScope

      public int getScope()
      Getter accessor for attribute scope.
      Returns:
      current value of scope
    • setScope

      public void setScope(int scope)
      Setter accessor for scope.
      Parameters:
      scope - new value for scope
    • release

      public void release()
      Specified by:
      release in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      release in class jakarta.servlet.jsp.tagext.TagSupport