org.sitemesh.content.tagrules.html
Class CoreHtmlTagRuleBundle
java.lang.Object
org.sitemesh.content.tagrules.html.CoreHtmlTagRuleBundle
- All Implemented Interfaces:
- TagRuleBundle
public class CoreHtmlTagRuleBundle
- extends Object
- implements TagRuleBundle
ContentProcessor implementation that processes HTML documents.
The following properties will be extracted from the document:
body: The contents of the <body> element.
title: The contents of the <title> element.
head: The contents of the <head> element,
meta.XXX: Each <meta> tag,
where XXX is the name of the tag.
meta.http-equiv.XXX: Each <meta http-equiv> tag,
where XXX is the http-equiv attribute of the tag.
body.XXX: Each attribute of the <body> tag,
where XXX is attribute name (e.g. body.bgcolor=white).
In the event that no <body> tag is found in the document, the body
attribute will instead be everything in the document that is not matched by any other rule. This is useful
for documents that are not wrapped in a <body> tag.
- Author:
- Joe Walnes
- See Also:
TagBasedContentProcessor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoreHtmlTagRuleBundle
public CoreHtmlTagRuleBundle()
install
public void install(State defaultState,
ContentProperty contentProperty,
SiteMeshContext siteMeshContext)
- Specified by:
install in interface TagRuleBundle
cleanUp
public void cleanUp(State defaultState,
ContentProperty contentProperty,
SiteMeshContext siteMeshContext)
- Specified by:
cleanUp in interface TagRuleBundle
Copyright © 2011. All Rights Reserved.