Package com.norconex.collector.http.link
Class Link
- java.lang.Object
-
- com.norconex.collector.http.link.Link
-
- All Implemented Interfaces:
Comparable<Link>
public class Link extends Object implements Comparable<Link>
Represents a link extracted from a document. A link is typically a URL, with optional metadata associated with it, such as the referrer, text and markup tag used to hold the URL.- Author:
- Pascal Essiembre
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Link other)booleanequals(Object other)PropertiesgetMetadata()StringgetReferrer()StringgetUrl()inthashCode()voidsetMetadata(Properties data)voidsetReferrer(String referrer)StringtoString()
-
-
-
Constructor Detail
-
Link
public Link(String url)
-
-
Method Detail
-
getUrl
public String getUrl()
-
getReferrer
public String getReferrer()
-
setReferrer
public void setReferrer(String referrer)
-
getMetadata
public Properties getMetadata()
-
setMetadata
public void setMetadata(Properties data)
-
compareTo
public int compareTo(Link other)
- Specified by:
compareToin interfaceComparable<Link>
-
-