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

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.api.event.site;
  2. import net.javacoding.jspider.api.event.EventVisitor;
  3. import net.javacoding.jspider.api.model.Site;
  4. /**
  5.  *
  6.  * $Id: RobotsTXTFetchedEvent.java,v 1.4 2003/03/28 17:26:26 vanrogu Exp $
  7.  *
  8.  * @author G黱ther Van Roey
  9.  */
  10. public class RobotsTXTFetchedEvent extends SiteRelatedEvent {
  11.     protected String robotsTXT;
  12.     public RobotsTXTFetchedEvent(Site site, String robotsTXT) {
  13.         super(site);
  14.         this.robotsTXT = robotsTXT;
  15.     }
  16.     public String getComment() {
  17.         return "robots.txt fetched from site " + site;
  18.     }
  19.     public String getRobotsTXT ( ) {
  20.         return robotsTXT;
  21.     }
  22.     public Site getSite( ) {
  23.         return site;
  24.     }
  25.     public void accept(EventVisitor visitor) {
  26.         visitor.visit(this);
  27.     }
  28. }