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
                        

    An abstract url is a url with some common properties and methods.

    • Method Detail

      • isNil

         Boolean isNil()

        An url is Nil if it equals to AppConstants.NIL_PAGE_URL

      • isPersistable

         Boolean isPersistable()

        If true, the url is persistable, it can be saved to the database. Not all urls are persistable, for example, a ListenableHyperlink with events is not persistable.

      • getLabel

         String getLabel()

        The url label, it should be a shortcut for -label option in load options

      • getDeadline

         Instant getDeadline()

        The deadline, it should be a shortcut for -deadline option in load options

      • getLang

         String getLang()

        Required website language, reserved for future use

      • setLang

         Unit setLang(String lang)

        Required website language, reserved for future use

      • getCountry

         String getCountry()

        Required website country, reserved for future use

      • getDistrict

         String getDistrict()

        Required website district, reserved for future use

      • getUrl

         String getUrl()

        The url specification, can be followed by load arguments.

      • setUrl

         Unit setUrl(String url)

        The url specification, can be followed by load arguments.

      • getArgs

         String getArgs()

        The explicitly specified load arguments

      • getReferrer

         String getReferrer()

        The referrer url, it is the url of the webpage that contains the hyperlink.

      • setReferrer

         Unit setReferrer(String referrer)

        The referrer url, it is the url of the webpage that contains the hyperlink.

      • getHref

         String getHref()

        The hypertext reference, it defines the address of the document, which this time is linked from. The href is usually extracted from the webpage and serves as the browser's primary choice for navigation.

      • setHref

         Unit setHref(String href)

        The hypertext reference, it defines the address of the document, which this time is linked from. The href is usually extracted from the webpage and serves as the browser's primary choice for navigation.

      • getPriority

         Integer getPriority()

        The priority of the url, the higher the priority, the earlier the url will be loaded. Priority is a numerical value, where smaller numbers indicate higher priority.

      • setPriority

         Unit setPriority(Integer priority)

        The priority of the url, the higher the priority, the earlier the url will be loaded. Priority is a numerical value, where smaller numbers indicate higher priority.