Class ParsableHyperlink
-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.urls.ComparableUrlAware,ai.platon.pulsar.common.urls.UrlAware,ai.platon.pulsar.crawl.common.url.ListenableUrl,kotlin.Comparable
public class ParsableHyperlink extends Hyperlink implements ListenableUrl
-
-
Field Summary
Fields Modifier and Type Field Description private PageEventeventprivate final Function2<WebPage, FeaturedDocument, Object>onParseprivate Stringargsprivate final StringconfiguredUrlprivate Stringcountryprivate final InstantdeadTimeprivate final Instantdeadlineprivate Integerdepthprivate Stringdistrictprivate Stringhrefprivate final BooleanisNilprivate final BooleanisPersistableprivate final BooleanisStandardprivate final Stringlabelprivate Stringlangprivate IntegernMaxRetryprivate Integerorderprivate Integerpriorityprivate final Stringrefererprivate Stringreferrerprivate Stringtextprivate final URLtoURLprivate final URLtoURLOrNullprivate Stringurl
-
Constructor Summary
Constructors Constructor Description ParsableHyperlink(String url, BiConsumer<WebPage, FeaturedDocument> onParse)Java compatible constructor ParsableHyperlink(String url, Function2<WebPage, FeaturedDocument, Object> onParse)
-
Method Summary
Modifier and Type Method Description PageEventgetEvent()UnitsetEvent(PageEvent event)final Function2<WebPage, FeaturedDocument, Object>getOnParse()-
Methods inherited from class ai.platon.pulsar.common.urls.AbstractUrl
compareTo, equals, getArgs, getConfiguredUrl, getCountry, getDeadline, getDistrict, getHref, getLabel, getLang, getNMaxRetry, getPriority, getReferrer, getToURL, getToURLOrNull, getUrl, hashCode, isNil, isPersistable, isStandard, serialize, setArgs, setCountry, setDistrict, setHref, setLang, setNMaxRetry, setPriority, setReferrer, setUrl, toString -
Methods inherited from class ai.platon.pulsar.common.urls.UrlAware
getDeadTime, getReferer -
Methods inherited from class ai.platon.pulsar.common.urls.Hyperlink
data, getDepth, getOrder, getText, setDepth, setOrder, setText -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ParsableHyperlink
ParsableHyperlink(String url, BiConsumer<WebPage, FeaturedDocument> onParse)
Java compatible constructor
-
-
-
-