|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fatwire.crawler.url.ResourceURL
public final class ResourceURL
This class represents a resource URL which is extracted from a WebResource downloaded as part of the crawl session.
| Constructor Summary | |
|---|---|
ResourceURL(java.net.URI uri,
int depth)
Constructor to create a ResourceURL object. |
|
| Method Summary | |
|---|---|
int |
getDepth()
The method is used to return the depth of the ResourceURL. |
int |
getTries()
Return the number of tries made to reach this ResourceURL. |
java.net.URI |
getURI()
Method is used to return the URI for the ResourceURL. |
int |
incrementTries()
Increment and return the number of retries made to reach this ResourceURL. |
| Constructor Detail |
|---|
public ResourceURL(java.net.URI uri,
int depth)
uri - URI representing the Resourcedepth - number of links away from a start URI. This must be a positive
integer and is zero for a starting URI.| Method Detail |
|---|
public int getDepth()
public java.net.URI getURI()
public int incrementTries()
public int getTries()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||