Class RelTagParser
java.lang.Object
org.apache.nutch.microformats.reltag.RelTagParser
- All Implemented Interfaces:
Configurable,HtmlParseFilter,Pluggable
Adds microformat rel-tags of document if found.
- See Also:
-
Field Summary
FieldsFields inherited from interface org.apache.nutch.parse.HtmlParseFilter
X_POINT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(Content content, ParseResult parseResult, HTMLMetaTags metaTags, DocumentFragment doc) Scan the HTML document looking at possible rel-tagsgetConf()voidsetConf(Configuration conf)
-
Field Details
-
REL_TAG
- See Also:
-
-
Constructor Details
-
RelTagParser
public RelTagParser()
-
-
Method Details
-
filter
public ParseResult filter(Content content, ParseResult parseResult, HTMLMetaTags metaTags, DocumentFragment doc) Scan the HTML document looking at possible rel-tags- Specified by:
filterin interfaceHtmlParseFilter- Parameters:
content- theContentfor a given responseparseResult- the result of running on or moreParser's on the content.metaTags- a populatedHTMLMetaTagsobjectdoc- aDocumentFragment(DOM) which can be processed in the filtering process.- Returns:
- a filtered
ParseResult - See Also:
-
setConf
- Specified by:
setConfin interfaceConfigurable
-
getConf
- Specified by:
getConfin interfaceConfigurable
-