public class HtmlCompressorTag
extends javax.servlet.jsp.tagext.BodyTagSupport
HtmlCompressor,
Serialized Form| Constructor and Description |
|---|
HtmlCompressorTag() |
| 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 |
setCompressCss(boolean compressCss)
Sets the compress css.
|
void |
setCompressJavaScript(boolean compressJavaScript)
Sets the compress java script.
|
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 |
setPreserveLineBreaks(boolean preserveLineBreaks)
Sets the preserve line breaks.
|
void |
setRemoveComments(boolean removeComments)
Sets the removes the comments.
|
void |
setRemoveFormAttributes(boolean removeFormAttributes)
Sets the removes the form attributes.
|
void |
setRemoveHttpProtocol(boolean removeHttpProtocol)
Sets the removes the http protocol.
|
void |
setRemoveHttpsProtocol(boolean removeHttpsProtocol)
Sets the removes the https protocol.
|
void |
setRemoveInputAttributes(boolean removeInputAttributes)
Sets the removes the input attributes.
|
void |
setRemoveIntertagSpaces(boolean removeIntertagSpaces)
Sets the removes the intertag spaces.
|
void |
setRemoveJavaScriptProtocol(boolean removeJavaScriptProtocol)
Sets the removes the java script protocol.
|
void |
setRemoveLinkAttributes(boolean removeLinkAttributes)
Sets the removes the link attributes.
|
void |
setRemoveMultiSpaces(boolean removeMultiSpaces)
Sets the removes the multi spaces.
|
void |
setRemoveQuotes(boolean removeQuotes)
Sets the removes the quotes.
|
void |
setRemoveScriptAttributes(boolean removeScriptAttributes)
Sets the removes the script attributes.
|
void |
setRemoveStyleAttributes(boolean removeStyleAttributes)
Sets the removes the style attributes.
|
void |
setSimpleBooleanAttributes(boolean simpleBooleanAttributes)
Sets the simple boolean attributes.
|
void |
setSimpleDoctype(boolean simpleDoctype)
Sets the simple doctype.
|
void |
setYuiCssLineBreak(int yuiCssLineBreak)
Sets the yui css line break.
|
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, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspExceptionpublic void setCompressJavaScript(boolean compressJavaScript)
compressJavaScript - the new compress java scriptHtmlCompressor.setCompressJavaScript(boolean)public void setCompressCss(boolean compressCss)
compressCss - the new compress cssHtmlCompressor.setCompressCss(boolean)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 setYuiCssLineBreak(int yuiCssLineBreak)
yuiCssLineBreak - the new yui css line breakHtmlCompressor.setYuiCssLineBreak(int)public void setRemoveQuotes(boolean removeQuotes)
removeQuotes - the new removes the quotesHtmlCompressor.setRemoveQuotes(boolean)public void setPreserveLineBreaks(boolean preserveLineBreaks)
preserveLineBreaks - the new preserve line breaksHtmlCompressor.setPreserveLineBreaks(boolean)public void setEnabled(boolean enabled)
enabled - the new enabledHtmlCompressor.setEnabled(boolean)public void setRemoveComments(boolean removeComments)
removeComments - the new removes the commentsHtmlCompressor.setRemoveComments(boolean)public void setRemoveMultiSpaces(boolean removeMultiSpaces)
removeMultiSpaces - the new removes the multi spacesHtmlCompressor.setRemoveMultiSpaces(boolean)public void setRemoveIntertagSpaces(boolean removeIntertagSpaces)
removeIntertagSpaces - the new removes the intertag spacesHtmlCompressor.setRemoveIntertagSpaces(boolean)public void setJsCompressor(String jsCompressor)
jsCompressor - Could be either "yui" for using YuiJavaScriptCompressor (used by default if none
provided) or "closure" for using ClosureJavaScriptCompressorYuiJavaScriptCompressor,
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)public void setSimpleDoctype(boolean simpleDoctype)
simpleDoctype - the new simple doctypeHtmlCompressor.setSimpleDoctype(boolean)public void setRemoveScriptAttributes(boolean removeScriptAttributes)
removeScriptAttributes - the new removes the script attributesHtmlCompressor.setRemoveScriptAttributes(boolean)public void setRemoveStyleAttributes(boolean removeStyleAttributes)
removeStyleAttributes - the new removes the style attributesHtmlCompressor.setRemoveStyleAttributes(boolean)public void setRemoveLinkAttributes(boolean removeLinkAttributes)
removeLinkAttributes - the new removes the link attributesHtmlCompressor.setRemoveLinkAttributes(boolean)public void setRemoveFormAttributes(boolean removeFormAttributes)
removeFormAttributes - the new removes the form attributesHtmlCompressor.setRemoveFormAttributes(boolean)public void setRemoveInputAttributes(boolean removeInputAttributes)
removeInputAttributes - the new removes the input attributesHtmlCompressor.setRemoveInputAttributes(boolean)public void setSimpleBooleanAttributes(boolean simpleBooleanAttributes)
simpleBooleanAttributes - the new simple boolean attributesHtmlCompressor.setSimpleBooleanAttributes(boolean)public void setRemoveJavaScriptProtocol(boolean removeJavaScriptProtocol)
removeJavaScriptProtocol - the new removes the java script protocolHtmlCompressor.setRemoveJavaScriptProtocol(boolean)public void setRemoveHttpProtocol(boolean removeHttpProtocol)
removeHttpProtocol - the new removes the http protocolHtmlCompressor.setRemoveHttpProtocol(boolean)public void setRemoveHttpsProtocol(boolean removeHttpsProtocol)
removeHttpsProtocol - the new removes the https protocolHtmlCompressor.setRemoveHttpsProtocol(boolean)Copyright © 2009–2016 Jeremy Landis. All rights reserved.