Class XmlFeedLinkExtractorConfig
java.lang.Object
com.norconex.crawler.web.doc.operations.link.impl.XmlFeedLinkExtractorConfig
Configuration for XmlFeedLinkExtractor.
- Since:
- 2.7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidClears all restrictions.booleanThe matcher of content types to apply link extraction on.Matcher of one or more fields to use as the source of content to extract links from, instead of the document content.Gets all restrictionsinthashCode()setContentTypeMatcher(TextMatcher matcher) The matcher of content types to apply link extraction on.setFieldMatcher(TextMatcher fieldMatcher) toString()
-
Constructor Details
-
XmlFeedLinkExtractorConfig
public XmlFeedLinkExtractorConfig()
-
-
Method Details
-
setFieldMatcher
-
setContentTypeMatcher
The matcher of content types to apply link extraction on. No attempt to extract links from any other content types will be made. Default isCommonMatchers.XML_FEED_CONTENT_TYPES.- Parameters:
matcher- content type matcher- Returns:
- this
-
clearRestrictions
public void clearRestrictions()Clears all restrictions. -
getRestrictions
Gets all restrictions- Returns:
- the restrictions
-
getContentTypeMatcher
The matcher of content types to apply link extraction on. No attempt to extract links from any other content types will be made. Default isCommonMatchers.XML_FEED_CONTENT_TYPES. -
getFieldMatcher
Matcher of one or more fields to use as the source of content to extract links from, instead of the document content. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-