-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.urls.ComparableUrlAware,ai.platon.pulsar.common.urls.UrlAware,kotlin.Comparable
public class FatLink extends Hyperlink
A (fat link)[https://en.wikipedia.org/wiki/Hyperlink#Fat_link] (also known as a "one-to-many" link, an "extended link" or a "multi-tailed link") is a hyperlink which leads to multiple endpoints; the link is a multivalued function.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integersizeprivate final BooleanisEmptyprivate final BooleanisNotEmptyprivate List<StatefulHyperlink>tailLinksprivate Integerdepthprivate Stringtextprivate Integerorderprivate final StringconfiguredUrlprivate final BooleanisStandardprivate final URLtoURLprivate final URLtoURLOrNullprivate final BooleanisNilprivate final BooleanisPersistableprivate final Stringlabelprivate final Instantdeadlineprivate Stringlangprivate Stringcountryprivate Stringdistrictprivate IntegernMaxRetryprivate Stringurlprivate Stringargsprivate Stringreferrerprivate Stringhrefprivate Integerpriorityprivate final Stringrefererprivate final InstantdeadTime
-
Method Summary
Modifier and Type Method Description final IntegergetSize()final BooleangetIsEmpty()final BooleangetIsNotEmpty()final List<StatefulHyperlink>getTailLinks()The tail links final UnitsetTailLinks(List<StatefulHyperlink> tailLinks)The tail links final IntegergetDepth()final UnitsetDepth(Integer depth)final StringgetText()The anchor text final UnitsetText(String text)The anchor text final IntegergetOrder()The order of this hyperlink in it referrer page final UnitsetOrder(Integer order)The order of this hyperlink in it referrer page StringgetConfiguredUrl()BooleangetIsStandard()URLgetToURL()URLgetToURLOrNull()BooleangetIsNil()BooleangetIsPersistable()If this url is persistable StringgetLabel()InstantgetDeadline()StringgetLang()Required website language UnitsetLang(String lang)Required website language StringgetCountry()Required website country UnitsetCountry(String country)Required website country StringgetDistrict()Required website district UnitsetDistrict(String district)Required website district IntegergetNMaxRetry()The maximum retry times UnitsetNMaxRetry(Integer nMaxRetry)The maximum retry times StringgetUrl()The url specification, it is usually normalized, and can contain load arguments. UnitsetUrl(String url)The url specification, it is usually normalized, and can contain load arguments. StringgetArgs()The url args UnitsetArgs(String args)The url args StringgetReferrer()The referrer UnitsetReferrer(String referrer)The referrer StringgetHref()The hypertext reference, It defines the address of the document, which this time is linked from UnitsetHref(String href)The hypertext reference, It defines the address of the document, which this time is linked from IntegergetPriority()The priority UnitsetPriority(Integer priority)The priority StringgetReferer()InstantgetDeadTime()StringtoString()-
Methods inherited from class ai.platon.pulsar.common.urls.FatLink
data -
Methods inherited from class ai.platon.pulsar.common.urls.Hyperlink
compareTo, equals, hashCode -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getIsEmpty
final Boolean getIsEmpty()
-
getIsNotEmpty
final Boolean getIsNotEmpty()
-
getTailLinks
final List<StatefulHyperlink> getTailLinks()
The tail links
-
setTailLinks
final Unit setTailLinks(List<StatefulHyperlink> tailLinks)
The tail links
-
getConfiguredUrl
String getConfiguredUrl()
-
getIsStandard
Boolean getIsStandard()
-
getToURLOrNull
URL getToURLOrNull()
-
getIsPersistable
Boolean getIsPersistable()
If this url is persistable
-
getDeadline
Instant getDeadline()
-
getCountry
String getCountry()
Required website country
-
setCountry
Unit setCountry(String country)
Required website country
-
getDistrict
String getDistrict()
Required website district
-
setDistrict
Unit setDistrict(String district)
Required website district
-
getNMaxRetry
Integer getNMaxRetry()
The maximum retry times
-
setNMaxRetry
Unit setNMaxRetry(Integer nMaxRetry)
The maximum retry times
-
getUrl
String getUrl()
The url specification, it is usually normalized, and can contain load arguments.
-
setUrl
Unit setUrl(String url)
The url specification, it is usually normalized, and can contain load arguments.
-
getReferrer
String getReferrer()
The referrer
-
setReferrer
Unit setReferrer(String referrer)
The referrer
-
getHref
String getHref()
The hypertext reference, It defines the address of the document, which this time is linked from
-
setHref
Unit setHref(String href)
The hypertext reference, It defines the address of the document, which this time is linked from
-
getPriority
Integer getPriority()
The priority
-
setPriority
Unit setPriority(Integer priority)
The priority
-
getReferer
String getReferer()
-
getDeadTime
Instant getDeadTime()
-
-
-
-