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:
- 10.2
- 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
Modifier and TypeMethodDescriptionint
protected String
Returns the actual file name of the requested resource.protected boolean
Returns whether this resource is minified.Methods inherited from class org.deltava.taglib.content.InsertContentTag
setName
Methods inherited from class org.deltava.taglib.BrowserInfoTag
getBrowserContext
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, 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
-
doStartTag
public int doStartTag()- Specified by:
doStartTag
in interfaceTag
- Overrides:
doStartTag
in classTagSupport
-