KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > javacoding > jspider > api > event > site > RobotsTXTFetchErrorEvent


1 /**
2  * This source is subject to the LGPL Open Source license.
3  */

4 package net.javacoding.jspider.api.event.site;
5
6 import net.javacoding.jspider.api.model.Site;
7
8
9 /**
10  *
11  * $Id: RobotsTXTFetchErrorEvent.java,v 1.5 2003/03/28 17:26:26 vanrogu Exp $
12  *
13  * @author Günther Van Roey
14  */

15 public class RobotsTXTFetchErrorEvent extends SiteRelatedEvent {
16
17     protected Exception JavaDoc exception;
18
19     public RobotsTXTFetchErrorEvent(Site site, Exception JavaDoc exception) {
20         super(site);
21         this.exception = exception;
22     }
23
24     public String JavaDoc getComment() {
25         return "robots.txt was unreachable on site '" + site + "'";
26     }
27
28     public Site getSite( ) {
29         return site;
30     }
31
32     public boolean isError() {
33         return true;
34     }
35 }
36
Popular Tags