Class InsertMinifiedContentTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.content.InsertContentTag
org.deltava.taglib.content.InsertMinifiedContentTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
Direct Known Subclasses:
InsertCSSTag, InsertJSTag

abstract class InsertMinifiedContentTag extends InsertContentTag
A JSP tag to insert optionally minified content. Content will be minified if the SystemData environment name starts with "prod".
Since:
5.0
Version:
12.0
Author:
Luke
  • Field Summary

    Fields inherited from class InsertContentTag

    _resourceName

    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
    int
     
    protected String
    Returns the actual file name of the requested resource.
    protected boolean
    Returns whether this resource is minified.
    void
     
    void
    setMinify(boolean override)
    Manually overrides the minification state of this resource.

    Methods inherited from class InsertContentTag

    setName

    Methods inherited from class BrowserInfoTag

    getBrowserContext, passedCAPTCHA

    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 Object

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

    • InsertMinifiedContentTag

      InsertMinifiedContentTag()
  • Method Details

    • getFileName

      protected String getFileName()
      Returns the actual file name of the requested resource.
      Returns:
      the file name
    • isMinified

      protected boolean isMinified()
      Returns whether this resource is minified.
      Returns:
      TRUE if minified, otherwise FALSE
    • setMinify

      public void setMinify(boolean override)
      Manually overrides the minification state of this resource.
      Parameters:
      override - TRUE to force minification, FALSE to prevent
    • release

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

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