Class InsertMinifiedContentTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag
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
  • 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 Tag
      Overrides:
      release in class TagSupport
    • doStartTag

      public int doStartTag()
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class TagSupport