Class AbstractCrawlEventHandlers
-
- All Implemented Interfaces:
-
ai.platon.pulsar.skeleton.crawl.CrawlEventHandlers
public abstract class AbstractCrawlEventHandlers implements CrawlEventHandlers
-
-
Field Summary
Fields Modifier and Type Field Description private final UrlAwareEventHandleronWillLoadprivate final UrlAwareWebPageEventHandleronLoaded
-
Constructor Summary
Constructors Constructor Description AbstractCrawlEventHandlers(UrlAwareEventHandler onWillLoad, UrlAwareWebPageEventHandler onLoaded)
-
Method Summary
Modifier and Type Method Description UrlAwareEventHandlergetOnWillLoad()Fire when the url is about to be loaded. UrlAwareWebPageEventHandlergetOnLoaded()Fire when the url is loaded. CrawlEventHandlerschain(CrawlEventHandlers other)Chain the other crawl event handler to the tail of this one. -
-
Constructor Detail
-
AbstractCrawlEventHandlers
AbstractCrawlEventHandlers(UrlAwareEventHandler onWillLoad, UrlAwareWebPageEventHandler onLoaded)
-
-
Method Detail
-
getOnWillLoad
UrlAwareEventHandler getOnWillLoad()
Fire when the url is about to be loaded.
-
getOnLoaded
UrlAwareWebPageEventHandler getOnLoaded()
Fire when the url is loaded.
-
chain
CrawlEventHandlers chain(CrawlEventHandlers other)
Chain the other crawl event handler to the tail of this one.
-
-
-
-