Class InsertMinifiedContentTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.deltava.taglib.BrowserInfoTag
org.deltava.taglib.content.InsertContentTag
org.deltava.taglib.content.InsertMinifiedContentTag
- All Implemented Interfaces:
Serializable
,IterationTag
,JspTag
,Tag
- 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 org.deltava.taglib.content.InsertContentTag
_resourceName
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
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 -
Method Summary
Methods inherited from class org.deltava.taglib.content.InsertContentTag
setName
Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext, passedCAPTCHA
Methods inherited from class javax.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:
release
in interfaceTag
- Overrides:
release
in classTagSupport
-
doStartTag
public int doStartTag()- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
-