-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.urls.ComparableUrlAware,ai.platon.pulsar.common.urls.UrlAware,kotlin.Comparable
public interface StatefulUrl implements ComparableUrlAware
The StatefulUrl interface. A StatefulUrl is an UrlAware with status.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetAuthToken()abstract UnitsetAuthToken(String authToken)abstract StringgetRemoteAddr()abstract UnitsetRemoteAddr(String remoteAddr)abstract IntegergetStatus()abstract UnitsetStatus(Integer status)abstract InstantgetModifiedAt()abstract UnitsetModifiedAt(Instant modifiedAt)abstract InstantgetCreatedAt()abstract StringgetUrl()The url, it can be configured or not abstract UnitsetUrl(String url)The url, it can be configured or not abstract StringgetArgs()The url args abstract UnitsetArgs(String args)The url args abstract StringgetReferrer()The referer abstract UnitsetReferrer(String referrer)The referer StringgetReferer()abstract StringgetHref()The hypertext reference, It defines the address of the document, which this time is linked from abstract UnitsetHref(String href)The hypertext reference, It defines the address of the document, which this time is linked from abstract IntegergetPriority()The priority abstract UnitsetPriority(Integer priority)The priority abstract StringgetConfiguredUrl()The configured url, always be "$url $args" abstract BooleangetIsStandard()If true, the url is standard and can be converted to a java.net.URL abstract URLgetToURL()Converted to a java.net.URL abstract URLgetToURLOrNull()Converted to a java.net.URL, if the url is invalid, return null abstract BooleangetIsNil()An url is Nil if it equals to AppConstants. abstract BooleangetIsPersistable()If this link is persistable abstract StringgetLabel()The url label, it should be a shortcut for -labeloption in load optionsabstract InstantgetDeadline()The deadline, it should be a shortcut for -deadlineoption in load optionsInstantgetDeadTime()abstract StringgetLang()Required website language abstract StringgetCountry()Required website country abstract StringgetDistrict()Required website district abstract IntegergetNMaxRetry()The maximum retry times -
-
Method Detail
-
getAuthToken
abstract String getAuthToken()
-
setAuthToken
abstract Unit setAuthToken(String authToken)
-
getRemoteAddr
abstract String getRemoteAddr()
-
setRemoteAddr
abstract Unit setRemoteAddr(String remoteAddr)
-
getModifiedAt
abstract Instant getModifiedAt()
-
setModifiedAt
abstract Unit setModifiedAt(Instant modifiedAt)
-
getCreatedAt
abstract Instant getCreatedAt()
-
getReferrer
abstract String getReferrer()
The referer
-
setReferrer
abstract Unit setReferrer(String referrer)
The referer
-
getReferer
String getReferer()
-
getHref
abstract String getHref()
The hypertext reference, It defines the address of the document, which this time is linked from
-
setHref
abstract Unit setHref(String href)
The hypertext reference, It defines the address of the document, which this time is linked from
-
getPriority
abstract Integer getPriority()
The priority
-
setPriority
abstract Unit setPriority(Integer priority)
The priority
-
getConfiguredUrl
abstract String getConfiguredUrl()
The configured url, always be "$url $args"
-
getIsStandard
abstract Boolean getIsStandard()
If true, the url is standard and can be converted to a java.net.URL
-
getToURL
abstract URL getToURL()
Converted to a java.net.URL
-
getToURLOrNull
abstract URL getToURLOrNull()
Converted to a java.net.URL, if the url is invalid, return null
-
getIsPersistable
abstract Boolean getIsPersistable()
If this link is persistable
-
getLabel
abstract String getLabel()
The url label, it should be a shortcut for
-labeloption in load options
-
getDeadline
abstract Instant getDeadline()
The deadline, it should be a shortcut for
-deadlineoption in load options
-
getDeadTime
Instant getDeadTime()
-
getCountry
abstract String getCountry()
Required website country
-
getDistrict
abstract String getDistrict()
Required website district
-
getNMaxRetry
abstract Integer getNMaxRetry()
The maximum retry times
-
-
-
-