SpideringStartedEvent.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
源码类别:

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.api.event.engine;
  2. import net.javacoding.jspider.api.event.EventVisitor;
  3. import java.net.URL;
  4. /**
  5.  *
  6.  * $Id: SpideringStartedEvent.java,v 1.2 2002/12/20 22:22:31 vanrogu Exp $
  7.  *
  8.  * @author G黱ther Van Roey
  9.  */
  10. public class SpideringStartedEvent extends EngineRelatedEvent {
  11.     protected URL baseURL;
  12.     public SpideringStartedEvent(URL baseURL) {
  13.         this.baseURL = baseURL;
  14.     }
  15.     public boolean isFilterable() {
  16.         return false;
  17.     }
  18.     public String getComment() {
  19.         return "Spidering started at '" + baseURL + "'";
  20.     }
  21.     public URL getBaseURL() {
  22.         return baseURL;
  23.     }
  24.     public void accept(EventVisitor visitor) {
  25.         visitor.visit(this);
  26.     }
  27. }