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

搜索引擎

开发平台:

Java

  1. /**
  2.  * This source is subject to the LGPL Open Source license.
  3.  */
  4. package net.javacoding.jspider.api.event.site;
  5. import net.javacoding.jspider.api.model.Site;
  6. /**
  7.  *
  8.  * $Id: RobotsTXTFetchErrorEvent.java,v 1.5 2003/03/28 17:26:26 vanrogu Exp $
  9.  *
  10.  * @author G黱ther Van Roey
  11.  */
  12. public class RobotsTXTFetchErrorEvent extends SiteRelatedEvent {
  13.     protected Exception exception;
  14.     public RobotsTXTFetchErrorEvent(Site site, Exception exception) {
  15.         super(site);
  16.         this.exception = exception;
  17.     }
  18.     public String getComment() {
  19.         return "robots.txt was unreachable on site '" + site + "'";
  20.     }
  21.     public Site getSite( ) {
  22.         return site;
  23.     }
  24.     public boolean isError() {
  25.         return true;
  26.     }
  27. }