Skip to main content

XmlFeedLinkExtractor

Extracts links from RSS and Atom XML feed documents.

Notes

Extracts links from RSS and Atom XML feed documents by parsing standard feed elements. Supports content-type restrictions to limit extraction to feed-type documents.

Examples

The following example ensures this link extractor should only apply on documents that have their URL ending with "rss" (in addition to the default content types filtering).

class: XmlFeedLinkExtractor
restrictions:
- fieldMatcher:
pattern: document.reference
valueMatcher:
method: REGEX
pattern: .*rss$

Usage

Full configuration skeleton, with every option and its default
class: XmlFeedLinkExtractor
contentTypeMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
restrictions:
- fieldMatcher: {}
valueMatcher: {}

Properties

PropertyTypeRequiredDefault
contentTypeMatcherTextMatcherNoTextMatcher
fieldMatcherTextMatcherNoTextMatcher
restrictionsPropertyMatcher[]No-

Property Details

contentTypeMatcher

Restricts processing to documents whose content type matches the specified pattern. When not set, the handler applies to all content types.

fieldMatcher

Matches document fields based on specified patterns and methods. Use this to restrict the handler to operate only on fields whose names satisfy the matcher criteria.

restrictions

Defines filter conditions that restrict which documents this committer processes. Documents not matching the restrictions are ignored by this committer.