-
- 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 and has 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 StringgetReferer()The referer(or referrer) abstract UnitsetReferer(String referer)The referer(or referrer) 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 StringgetConfiguredUrl()The configured url, always be "$url $args" abstract BooleangetIsNil()If this is a Nil url who's url is AppConstants. abstract BooleangetIsPersistable()If this link is persistable abstract StringgetLabel()The url label, it should be in args abstract InstantgetDeadTime()The url label, it should be in args abstract StringgetLang()Required website language abstract StringgetCountry()Required website country abstract StringgetDistrict()Required website district abstract IntegergetMaxRetry()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()
-
getReferer
abstract String getReferer()
The referer(or referrer)
-
setReferer
abstract Unit setReferer(String referer)
The referer(or referrer)
-
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
-
getConfiguredUrl
abstract String getConfiguredUrl()
The configured url, always be "$url $args"
-
getIsPersistable
abstract Boolean getIsPersistable()
If this link is persistable
-
getDeadTime
abstract Instant getDeadTime()
The url label, it should be in args
-
getCountry
abstract String getCountry()
Required website country
-
getDistrict
abstract String getDistrict()
Required website district
-
getMaxRetry
abstract Integer getMaxRetry()
The maximum retry times
-
-
-
-