com.norconex.collector.http.crawler
Class HttpCrawlerEventAdapter

java.lang.Object
  extended by com.norconex.collector.http.crawler.HttpCrawlerEventAdapter
All Implemented Interfaces:
IHttpCrawlerEventListener

public class HttpCrawlerEventAdapter
extends Object
implements IHttpCrawlerEventListener

Adapter for IHttpCrawlerEventListener. None of the method implementations do nothing. Subclasing of this class is favoured over direct implementation of IHttpCrawlerEventListener.

Author:
Pascal Essiembre

Constructor Summary
HttpCrawlerEventAdapter()
           
 
Method Summary
 void crawlerFinished(HttpCrawler crawler)
           
 void crawlerStarted(HttpCrawler crawler)
           
 void documentCrawled(HttpCrawler crawler, HttpDocument document)
           
 void documentFetched(HttpCrawler crawler, HttpDocument document, IHttpDocumentFetcher fetcher)
           
 void documentHeadersFetched(HttpCrawler crawler, String url, IHttpHeadersFetcher headersFetcher, Properties headers)
           
 void documentHeadersRejected(HttpCrawler crawler, String url, IHttpHeadersFilter filter, Properties headers)
           
 void documentImported(HttpCrawler crawler, HttpDocument document)
           
 void documentPostProcessed(HttpCrawler crawler, HttpDocument document, IHttpDocumentProcessor postProcessor)
           
 void documentPreProcessed(HttpCrawler crawler, HttpDocument document, IHttpDocumentProcessor preProcessor)
           
 void documentRejected(HttpCrawler crawler, HttpDocument document, IHttpDocumentFilter filter)
           
 void documentRobotsTxtRejected(HttpCrawler crawler, String url, IURLFilter filter, RobotsTxt robotsTxt)
           
 void documentURLRejected(HttpCrawler crawler, String url, IURLFilter filter)
           
 void documentURLsExtracted(HttpCrawler crawler, HttpDocument document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpCrawlerEventAdapter

public HttpCrawlerEventAdapter()
Method Detail

crawlerStarted

public void crawlerStarted(HttpCrawler crawler)
Specified by:
crawlerStarted in interface IHttpCrawlerEventListener

documentRobotsTxtRejected

public void documentRobotsTxtRejected(HttpCrawler crawler,
                                      String url,
                                      IURLFilter filter,
                                      RobotsTxt robotsTxt)
Specified by:
documentRobotsTxtRejected in interface IHttpCrawlerEventListener

documentURLRejected

public void documentURLRejected(HttpCrawler crawler,
                                String url,
                                IURLFilter filter)
Specified by:
documentURLRejected in interface IHttpCrawlerEventListener

documentHeadersFetched

public void documentHeadersFetched(HttpCrawler crawler,
                                   String url,
                                   IHttpHeadersFetcher headersFetcher,
                                   Properties headers)
Specified by:
documentHeadersFetched in interface IHttpCrawlerEventListener

documentHeadersRejected

public void documentHeadersRejected(HttpCrawler crawler,
                                    String url,
                                    IHttpHeadersFilter filter,
                                    Properties headers)
Specified by:
documentHeadersRejected in interface IHttpCrawlerEventListener

documentFetched

public void documentFetched(HttpCrawler crawler,
                            HttpDocument document,
                            IHttpDocumentFetcher fetcher)
Specified by:
documentFetched in interface IHttpCrawlerEventListener

documentURLsExtracted

public void documentURLsExtracted(HttpCrawler crawler,
                                  HttpDocument document)
Specified by:
documentURLsExtracted in interface IHttpCrawlerEventListener

documentRejected

public void documentRejected(HttpCrawler crawler,
                             HttpDocument document,
                             IHttpDocumentFilter filter)
Specified by:
documentRejected in interface IHttpCrawlerEventListener

documentPreProcessed

public void documentPreProcessed(HttpCrawler crawler,
                                 HttpDocument document,
                                 IHttpDocumentProcessor preProcessor)
Specified by:
documentPreProcessed in interface IHttpCrawlerEventListener

documentImported

public void documentImported(HttpCrawler crawler,
                             HttpDocument document)
Specified by:
documentImported in interface IHttpCrawlerEventListener

documentPostProcessed

public void documentPostProcessed(HttpCrawler crawler,
                                  HttpDocument document,
                                  IHttpDocumentProcessor postProcessor)
Specified by:
documentPostProcessed in interface IHttpCrawlerEventListener

crawlerFinished

public void crawlerFinished(HttpCrawler crawler)
Specified by:
crawlerFinished in interface IHttpCrawlerEventListener

documentCrawled

public void documentCrawled(HttpCrawler crawler,
                            HttpDocument document)
Specified by:
documentCrawled in interface IHttpCrawlerEventListener


Copyright © 2009-2013 Norconex Inc.. All Rights Reserved.