public class JavaScriptCompressorTag
extends javax.servlet.jsp.tagext.BodyTagSupport
HtmlCompressor
are supported.HtmlCompressor
,
Yahoo YUI Compressor,
Google Closure Compiler,
Serialized FormConstructor and Description |
---|
JavaScriptCompressorTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
void |
setClosureOptLevel(String closureOptLevel)
Sets level of optimization if Google Closure Compiler is
used for compressing inline JavaScript.
|
void |
setEnabled(boolean enabled)
Sets the enabled.
|
void |
setJsCompressor(String jsCompressor)
Sets JavaScript compressor implementation that will be used to compress inline JavaScript in HTML.
|
void |
setYuiJsDisableOptimizations(boolean yuiJsDisableOptimizations)
Sets the yui js disable optimizations.
|
void |
setYuiJsLineBreak(int yuiJsLineBreak)
Sets the yui js line break.
|
void |
setYuiJsNoMunge(boolean yuiJsNoMunge)
Sets the yui js no munge.
|
void |
setYuiJsPreserveAllSemiColons(boolean yuiJsPreserveAllSemiColons)
Sets the yui js preserve all semi colons.
|
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public void setYuiJsNoMunge(boolean yuiJsNoMunge)
yuiJsNoMunge
- the new yui js no mungeHtmlCompressor.setYuiJsNoMunge(boolean)
public void setYuiJsPreserveAllSemiColons(boolean yuiJsPreserveAllSemiColons)
yuiJsPreserveAllSemiColons
- the new yui js preserve all semi colonsHtmlCompressor.setYuiJsPreserveAllSemiColons(boolean)
public void setYuiJsDisableOptimizations(boolean yuiJsDisableOptimizations)
yuiJsDisableOptimizations
- the new yui js disable optimizationsHtmlCompressor.setYuiJsDisableOptimizations(boolean)
public void setYuiJsLineBreak(int yuiJsLineBreak)
yuiJsLineBreak
- the new yui js line breakHtmlCompressor.setYuiJsLineBreak(int)
public void setEnabled(boolean enabled)
enabled
- the new enabledHtmlCompressor.setEnabled(boolean)
public void setJsCompressor(String jsCompressor)
jsCompressor
- Could be either "yui"
for using YuiJavaScriptCompressor
(used by default if none
provided) or "closure"
for using ClosureJavaScriptCompressor
YuiJavaScriptCompressor
,
ClosureJavaScriptCompressor
,
Yahoo YUI Compressor,
Google Closure Compilerpublic void setClosureOptLevel(String closureOptLevel)
closureOptLevel
- Could be either "simple"
(used by default), "whitespace"
or
"advanced"
ClosureJavaScriptCompressor.setCompilationLevel(CompilationLevel)
Copyright © 2009–2020 Jeremy Landis. All rights reserved.