-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.urls.ComparableUrlAware,ai.platon.pulsar.common.urls.UrlAware,kotlin.Comparable
public abstract class AbstractUrl implements ComparableUrlAware
-
-
Field Summary
Fields Modifier and Type Field Description private 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 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, it can be configured or not UnitsetUrl(String url)The url, it can be configured or not StringgetArgs()The url args UnitsetArgs(String args)The url args StringgetReferrer()The referer UnitsetReferrer(String referrer)The referer 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()Booleanequals(Object other)An abstract url can compare to one of the following types: IntegercompareTo(UrlAware other)IntegerhashCode()StringtoString()-
-
Method Detail
-
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
-
getReferrer
String getReferrer()
The referer
-
setReferrer
Unit setReferrer(String referrer)
The referer
-
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()
-
-
-
-