Class GenericSitemapLocatorConfig

java.lang.Object
com.norconex.crawler.web.doc.operations.sitemap.impl.GenericSitemapLocatorConfig

public class GenericSitemapLocatorConfig extends Object
Configuration for GenericSitemapLocator.
  • Field Details

    • DEFAULT_PATHS

      public static final List<String> DEFAULT_PATHS
  • Constructor Details

    • GenericSitemapLocatorConfig

      public GenericSitemapLocatorConfig()
  • Method Details

    • getPaths

      public List<String> getPaths()
      Gets the URL paths, relative to the URL root, from which to try locate and resolve sitemaps. Default paths are "/sitemap.xml" and "/sitemap-index.xml".
      Returns:
      sitemap paths.
    • setPaths

      public void setPaths(List<String> paths)
      Sets the URL paths, relative to the URL root, from which to try locate and resolve sitemaps.
      Parameters:
      paths - sitemap paths.
    • isRobotsTxtSitemapDisabled

      public boolean isRobotsTxtSitemapDisabled()
      Whether to disable checking for the sitemap locations in a web site robots.txt file.
    • setRobotsTxtSitemapDisabled

      public GenericSitemapLocatorConfig setRobotsTxtSitemapDisabled(boolean robotsTxtSitemapDisabled)
      Whether to disable checking for the sitemap locations in a web site robots.txt file.
      Returns:
      this.
    • 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