Class AbstractUrl
-
- 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()The configured url, always be "$url $args" BooleanisStandard()If true, the url is standard and can be converted to a java.net.URL URLgetToURL()Converted to a java.net.URL URLgetToURLOrNull()Converted to a java.net.URL, if the url is invalid, return null BooleanisNil()An url is Nil if it equals to AppConstants. BooleanisPersistable()If this url is persistable. StringgetLabel()The url label, it should be a shortcut for -labeloption in load optionsInstantgetDeadline()The deadline, it should be a shortcut for -deadlineoption in load optionsStringgetLang()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 Booleanequals(Object other)An abstract url can compare to one of the following types: IntegercompareTo(UrlAware other)IntegerhashCode()StringtoString()Stringserialize()-
-
Method Detail
-
getConfiguredUrl
String getConfiguredUrl()
The configured url, always be "$url $args"
-
isStandard
Boolean isStandard()
If true, the url is standard and can be converted to a java.net.URL
-
getToURL
URL getToURL()
Converted to a java.net.URL
-
getToURLOrNull
URL getToURLOrNull()
Converted to a java.net.URL, if the url is invalid, return null
-
isPersistable
Boolean isPersistable()
If this url is persistable. Not all urls are persistable, for example, a ListenableHyperlink with events is not persistable.
-
getDeadline
Instant getDeadline()
The deadline, it should be a shortcut for
-deadlineoption in load options
-
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
-
-
-
-