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
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
_resourceNameModifier and TypeFieldDescriptionprotected StringThe name of the resource to display, without extension.Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class InsertContentTag
setNameMethods inherited from class BrowserInfoTag
getBrowserContext, passedCAPTCHAModifier and TypeMethodDescriptionprotected HTTPContextDataFetches the browser data.protected booleanReturns whether the user has passed CAPTCHA validation.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
InsertMinifiedContentTag
InsertMinifiedContentTag()
-
-
Method Details
-
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:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classjakarta.servlet.jsp.tagext.TagSupport
-
doStartTag
public int doStartTag()- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport
-