Interface CrawlScope

  • All Known Implementing Classes:
    DefaultCrawlScope
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface CrawlScope
    The crawl scope allows to check if a URL is or not in scope.

    URLs in scope are crawled during the crawling process.

    Since:
    5.0
    • Method Detail

      • isInScope

        boolean isInScope​(String url)
        Tells whether or not the given URL is in scope.

        Called during the crawl process, to know if the crawling process should crawl or backtrack.

        Parameters:
        url - the URL to check if it's in scope.
        Returns:
        true if the given URL is in scope, false otherwise.