Java Reference
In-Depth Information
public SpiderReport(String path) {
this.path = path;
}
/**
* This function is called when the spider is ready to
* process a new host. This function simply stores the
* value of the current host.
*
* @param host
* The new host that is about to be processed.
* @return True if this host should be processed, false
* otherwise.
*/
public boolean beginHost(String host) {
if (this.base == null) {
this.base = host;
return true;
} else {
return false;
}
}
/**
* Called when the spider is starting up. This method
* provides the SpiderReportable class with the spider
* object. This method is not used in this manager.
*
* @param spider
* The spider that will be working with this
* object.
*/
public void init(Spider spider) {
}
/**
* Called when the spider encounters a URL. If the URL is
* on the same host as the base host, then the function
* will return true, indicating that the URL is to be
* processed.
*
* @param url
* The URL that the spider found.
* @param source
* The page that the URL was found on.
* @param type
Search WWH ::




Custom Search