-
public interface UrlAwareA URL represents a Uniform Resource Locator, a pointer to a "resource" on the World Wide Web. A resource can be something as simple as a file or a directory, or it can be a reference to a more complicated object, such as a query to a database or to a search engine.
In java, a URL object represents a URL. In Pulsar, a UrlAware object represents a URL with extra information telling the system how to fetch it.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetUrl()The url specification, it is usually normalized, and can contain load arguments. abstract UnitsetUrl(String url)The url specification, it is usually normalized, and can contain load arguments. abstract StringgetArgs()The url args abstract UnitsetArgs(String args)The url args 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 StringgetReferrer()The referrer abstract UnitsetReferrer(String referrer)The referrer StringgetReferer()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
-
getUrl
abstract String getUrl()
The url specification, it is usually normalized, and can contain load arguments.
-
setUrl
abstract Unit setUrl(String url)
The url specification, it is usually normalized, and can contain load arguments.
-
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
-
getReferrer
abstract String getReferrer()
The referrer
-
setReferrer
abstract Unit setReferrer(String referrer)
The referrer
-
getReferer
String getReferer()
-
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
-
-
-
-