Class XmlFeedLinkExtractor
java.lang.Object
com.norconex.crawler.web.doc.operations.link.impl.XmlFeedLinkExtractor
- All Implemented Interfaces:
Configurable<XmlFeedLinkExtractorConfig>,LinkExtractor
public class XmlFeedLinkExtractor
extends Object
implements LinkExtractor, Configurable<XmlFeedLinkExtractorConfig>
Link extractor for extracting links out of
RSS and
Atom XML feeds.
It extracts the content of <link> tags. If you need more complex
extraction, consider using RegexLinkExtractor or creating your own
LinkExtractor implementation.
Applicable documents
By default, this extractor only will be applied on documents matching
one of the content types defined by
CommonMatchers.XML_FEED_CONTENT_TYPES.
Referrer data
The following referrer information is stored as metadata in each document represented by the extracted URLs:
- Referrer reference: The reference (URL) of the page where the
link to a document was found. Metadata value is
WebDocMetadata.REFERRER_REFERENCE.
- Since:
- 2.7.0
-
Field Summary
Fields inherited from interface com.norconex.commons.lang.config.Configurable
PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanextractLinks(Doc doc) inthashCode()toString()
-
Constructor Details
-
XmlFeedLinkExtractor
public XmlFeedLinkExtractor()
-
-
Method Details
-
extractLinks
- Specified by:
extractLinksin interfaceLinkExtractor- Throws:
IOException
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getConfiguration
- Specified by:
getConfigurationin interfaceConfigurable<XmlFeedLinkExtractorConfig>
-