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 int
compareTo(Link other)
boolean
equals(Object other)
Properties
getMetadata()
String
getReferrer()
String
getUrl()
int
hashCode()
void
setMetadata(Properties data)
void
setReferrer(String referrer)
String
toString()
-
-
-
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:
compareTo
in interfaceComparable<Link>
-
-