Class SiteMapIndex

    • Constructor Detail

      • SiteMapIndex

        public SiteMapIndex()
      • SiteMapIndex

        public SiteMapIndex​(URL url)
    • Method Detail

      • getSitemaps

        public Collection<AbstractSiteMap> getSitemaps​(boolean deduplicate)
        Parameters:
        deduplicate - deduplicate sitemaps by URL: from two or more sitemaps pointing to the same URL only the first is kept in the returned collection
        Returns:
        the (deduplicated) Collection of Sitemaps in this Sitemap Index.
      • addSitemap

        public void addSitemap​(AbstractSiteMap sitemap)
        Add this Sitemap to the list of Sitemaps,
        Parameters:
        sitemap - - Sitemap to be added to the list of Sitemaps
      • getSitemap

        public AbstractSiteMap getSitemap​(URL url)
        Returns the Sitemap that has the given URL. Returns null if the URL cannot be found.
        Parameters:
        url - - The Sitemap's URL
        Returns:
        SiteMap corresponding to the URL or null
      • hasUnprocessedSitemap

        public boolean hasUnprocessedSitemap()
        Returns:
        true if there are Sitemaps in this index that have not been processed yet, false otherwise.
      • nextUnprocessedSitemap

        public AbstractSiteMap nextUnprocessedSitemap()
        Returns:
        an unprocessed Sitemap or null if no unprocessed Sitemaps could be found.