public interface CrawlerAccess
WebCrawler. Whenever a
ContentHandler wants to add a page to the queue of the
WebCrawler it will call the methods of the CrawlerAccess
object it receives. You can set your own CrawlerAccess implementation
between the ContentHandler and the WebCrawler with
WebCrawler.setCallBack| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Object crawlObject,
int depth)
Adds an url to the queue of the crawler.
|
void |
addObject(java.lang.Object data)
Gives any object constructed from the crawled page to the call back object.
|
void |
forceExit() |
void |
setProperty(java.lang.String key,
java.lang.Object value) |
void add(java.lang.Object crawlObject,
int depth)
void forceExit()
void setProperty(java.lang.String key,
java.lang.Object value)
void addObject(java.lang.Object data)
CrawlerAccess implementation to decide what to do with it.Copyright 2004-2015 Wandora Team