Package org.apache.nutch.parse.tika
Class HTMLMetaProcessor
java.lang.Object
org.apache.nutch.parse.tika.HTMLMetaProcessor
Class for parsing META Directives from DOM trees. This class handles
specifically Robots META directives (all, none, nofollow, noindex), finding
BASE HREF tags, and HTTP-EQUIV no-cache instructions. All meta directives are
stored in a HTMLMetaTags instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidgetMetaTags(HTMLMetaTags metaTags, Node node, URL currURL) Sets the indicators inrobotsMetato appropriate values, based on any META tags found under the givennode.
-
Constructor Details
-
HTMLMetaProcessor
public HTMLMetaProcessor()
-
-
Method Details
-
getMetaTags
Sets the indicators inrobotsMetato appropriate values, based on any META tags found under the givennode.- Parameters:
metaTags- aHTMLMetaTagsto populate with tags discovered in the given Nodenode- a DOMNodeto process and extract metadata fromcurrURL- the cononical URL associated with the metatags and Node
-