Class ParsableHyperlink

  • All Implemented Interfaces:
    ai.platon.pulsar.common.urls.ComparableUrlAware , ai.platon.pulsar.common.urls.UrlAware , ai.platon.pulsar.skeleton.crawl.common.url.ListenableUrl , kotlin.Comparable

    
    public class ParsableHyperlink
    extends Hyperlink implements ListenableUrl
                        

    A hyperlink that contains a onParse event handler. The onParse event handler will be called when the page is parsed.

    • Constructor Detail

      • ParsableHyperlink

        ParsableHyperlink(String url, BiConsumer<WebPage, FeaturedDocument> onParse)
        Java compatible constructor
      • ParsableHyperlink

        ParsableHyperlink(String url, Function2<WebPage, FeaturedDocument, Object> onParse)