Package ai.platon.pulsar.common.urls
Interface StatefulUrl
-
- 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()The authorization token, it is used to authenticate the request. abstract UnitsetAuthToken(String authToken)The authorization token, it is used to authenticate the request. abstract StringgetRemoteAddr()The remote address abstract UnitsetRemoteAddr(String remoteAddr)The remote address abstract IntegergetStatus()The status of the url abstract UnitsetStatus(Integer status)The status of the url abstract InstantgetModifiedAt()The modified time abstract UnitsetModifiedAt(Instant modifiedAt)The modified time abstract InstantgetCreatedAt()The created time -
Methods inherited from class kotlin.Comparable
compareTo -
Methods inherited from class ai.platon.pulsar.common.urls.UrlAware
getArgs, getConfiguredUrl, getCountry, getDeadline, getDepth, getDistrict, getHref, getLabel, getLang, getNMaxRetry, getOrder, getPriority, getReferrer, getText, getToURL, getToURLOrNull, getUrl, isNil, isPersistable, isStandard, setArgs, setHref, setOrder, setPriority, setReferrer, setText, setUrl -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getAuthToken
abstract String getAuthToken()
The authorization token, it is used to authenticate the request. The auth token like this:
a106WzRlrvS9Ae77d4a20e9a30344ef688562c0a249f7.
-
setAuthToken
abstract Unit setAuthToken(String authToken)
The authorization token, it is used to authenticate the request. The auth token like this:
a106WzRlrvS9Ae77d4a20e9a30344ef688562c0a249f7.
-
getRemoteAddr
abstract String getRemoteAddr()
The remote address
-
setRemoteAddr
abstract Unit setRemoteAddr(String remoteAddr)
The remote address
-
getModifiedAt
abstract Instant getModifiedAt()
The modified time
-
setModifiedAt
abstract Unit setModifiedAt(Instant modifiedAt)
The modified time
-
getCreatedAt
abstract Instant getCreatedAt()
The created time
-
-
-
-