Class XmlFeedLinkExtractorConfig

java.lang.Object
com.norconex.crawler.web.doc.operations.link.impl.XmlFeedLinkExtractorConfig

public class XmlFeedLinkExtractorConfig extends Object

Configuration for XmlFeedLinkExtractor.

Since:
2.7.0
  • Constructor Details

    • XmlFeedLinkExtractorConfig

      public XmlFeedLinkExtractorConfig()
  • Method Details

    • setFieldMatcher

      public XmlFeedLinkExtractorConfig setFieldMatcher(TextMatcher fieldMatcher)
    • setContentTypeMatcher

      public XmlFeedLinkExtractorConfig setContentTypeMatcher(TextMatcher matcher)
      The matcher of content types to apply link extraction on. No attempt to extract links from any other content types will be made. Default is CommonMatchers.XML_FEED_CONTENT_TYPES.
      Parameters:
      matcher - content type matcher
      Returns:
      this
    • clearRestrictions

      public void clearRestrictions()
      Clears all restrictions.
    • getRestrictions

      public PropertyMatchers getRestrictions()
      Gets all restrictions
      Returns:
      the restrictions
    • getContentTypeMatcher

      public TextMatcher 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 is CommonMatchers.XML_FEED_CONTENT_TYPES.
    • getFieldMatcher

      public TextMatcher getFieldMatcher()
      Matcher of one or more fields to use as the source of content to extract links from, instead of the document content.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object