-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.urls.ComparableUrlAware,ai.platon.pulsar.common.urls.UrlAware,kotlin.Comparable
public abstract class AbstractUrl implements UrlAware, ComparableUrlAware
-
-
Field Summary
Fields Modifier and Type Field Description private final StringconfiguredUrlprivate final BooleanisNilprivate final BooleanisPersistableprivate final Stringlabelprivate Stringlangprivate Stringcountryprivate Stringdistrictprivate IntegermaxRetryprivate final InstantdeadTimeprivate Stringurlprivate Stringargsprivate Stringrefererprivate Stringhref
-
Constructor Summary
Constructors Constructor Description AbstractUrl(String url, String args, String referer, String href)
-
Method Summary
Modifier and Type Method Description StringgetConfiguredUrl()BooleangetIsNil()BooleangetIsPersistable()If this link is persistable StringgetLabel()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 IntegergetMaxRetry()The maximum retry times UnitsetMaxRetry(Integer maxRetry)The maximum retry times InstantgetDeadTime()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 StringgetReferer()The referer(or referrer) UnitsetReferer(String referer)The referer(or 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 Booleanequals(Object other)A abstract url can be compare to one of the following types: IntegercompareTo(UrlAware other)IntegerhashCode()StringtoString()-
-
Method Detail
-
getConfiguredUrl
String getConfiguredUrl()
-
getIsPersistable
Boolean getIsPersistable()
If this link is persistable
-
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
-
getMaxRetry
Integer getMaxRetry()
The maximum retry times
-
setMaxRetry
Unit setMaxRetry(Integer maxRetry)
The maximum retry times
-
getDeadTime
Instant getDeadTime()
-
getReferer
String getReferer()
The referer(or referrer)
-
setReferer
Unit setReferer(String referer)
The referer(or 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
-
-
-
-