|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface for the model that the SimpleSpider
uses.
Method Summary | |
void |
addFoundURL(String foundIn,
String found)
Proposes a URL for future parsing. |
void |
destroy()
Called by the Sperowider to close all open resources |
List |
getFoundURLs(String sourceURL)
Returns a List of String objects that are the URLs that the passed in URL reference. |
Collection |
getInvalidURLs()
Returns the list of invalid URLs |
List |
getSourceURLs(String foundURL)
Returns a List of String objects that are the URLs in which the passed in URL is found. |
int |
getSpiderQueueSize()
The number of URLs left in the queue. |
String |
getUnspideredUrl()
Returns a URL for parsing. |
boolean |
isSpiderMapSupported()
Implementing classes should return true if they are capable of handling calls to getSourceURLs(String) and getFoundURLs(String) ,
false otherwise. |
void |
markInvalidURL(String givenURL,
int responseCode,
String message)
Mark a URL as invalid |
Method Detail |
public void addFoundURL(String foundIn, String found)
public String getUnspideredUrl()
public int getSpiderQueueSize()
public void markInvalidURL(String givenURL, int responseCode, String message)
public List getSourceURLs(String foundURL) throws UnsupportedOperationException
UnsupportedOperationException
rather than return
a valid value. Those models that do throw the exception
should return false for isSpiderMapSupported()
.
UnsupportedOperationException
- If the model does not support this methodpublic List getFoundURLs(String sourceURL) throws UnsupportedOperationException
UnsupportedOperationException
rather than return
a valid value. Those models that do throw the exception
should return false for isSpiderMapSupported()
.
UnsupportedOperationException
- If the model does not support this methodpublic boolean isSpiderMapSupported()
getSourceURLs(String)
and getFoundURLs(String)
,
false otherwise.
public Collection getInvalidURLs()
public void destroy()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |