|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.lagarto.TagAdapter
jodd.lagarto.htmlstapler.HtmlStaplerTagAdapter
public class HtmlStaplerTagAdapter
HTML Stapler tag adapter parses HTML page and collects all information about linking resource files.
| Field Summary | |
|---|---|
protected HtmlStaplerBundlesManager |
bundlesManager
|
protected BundleAction |
cssBundleAction
|
protected boolean |
insideConditionalComment
|
protected BundleAction |
jsBundleAction
|
| Fields inherited from class jodd.lagarto.TagAdapter |
|---|
target |
| Constructor Summary | |
|---|---|
HtmlStaplerTagAdapter(HtmlStaplerBundlesManager bundlesManager,
java.lang.String servletPath,
TagVisitor target)
|
|
| Method Summary | |
|---|---|
void |
condComment(java.lang.CharSequence expression,
boolean isStartingTag,
boolean isHidden,
java.lang.CharSequence comment)
Invoked on IE conditional comment. |
void |
end()
Invoked at the end, after all content is visited. |
char[] |
postProcess(char[] content)
Post process final content. |
void |
script(Tag tag,
java.lang.CharSequence body)
Invoked on script tag. |
void |
tag(Tag tag)
Invoked on tag (open, close or empty). |
| Methods inherited from class jodd.lagarto.TagAdapter |
|---|
cdata, comment, doctype, error, getTarget, start, style, text, xml, xmp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final HtmlStaplerBundlesManager bundlesManager
protected final BundleAction jsBundleAction
protected final BundleAction cssBundleAction
protected boolean insideConditionalComment
| Constructor Detail |
|---|
public HtmlStaplerTagAdapter(HtmlStaplerBundlesManager bundlesManager,
java.lang.String servletPath,
TagVisitor target)
| Method Detail |
|---|
public void script(Tag tag,
java.lang.CharSequence body)
TagVisitor
script in interface TagVisitorscript in class TagAdapterpublic void tag(Tag tag)
TagVisitortag (open, close or empty).
Warning: the passed tag instance should not be kept beyond this method as the parser reuse it!
tag in interface TagVisitortag in class TagAdapter
public void condComment(java.lang.CharSequence expression,
boolean isStartingTag,
boolean isHidden,
java.lang.CharSequence comment)
TagVisitorexpression if unmodified expression.
comment is optional additional comment and may be null.
condComment in interface TagVisitorcondComment in class TagAdapterpublic void end()
TagVisitor
end in interface TagVisitorend in class TagAdapterpublic char[] postProcess(char[] content)
RESOURCE_ONLY strategy.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||