KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > javacoding > jspider > api > event > resource > ResourceIgnoredForFetchingEvent


1 package net.javacoding.jspider.api.event.resource;
2
3
4 import net.javacoding.jspider.api.event.EventVisitor;
5 import net.javacoding.jspider.api.model.FetchIgnoredResource;
6 import net.javacoding.jspider.api.model.Resource;
7
8
9 /**
10  *
11  * $Id: ResourceIgnoredForFetchingEvent.java,v 1.1.1.1 2002/11/20 17:02:31 vanrogu Exp $
12  *
13  * @author GŁnther Van Roey
14  */

15 public class ResourceIgnoredForFetchingEvent extends ResourceRelatedEvent {
16
17     public ResourceIgnoredForFetchingEvent(Resource resource) {
18         super(resource);
19     }
20
21     public FetchIgnoredResource getResource() {
22         return (FetchIgnoredResource) resource;
23     }
24
25     public String JavaDoc getComment() {
26         return resource.getURL() + " ignored for fetching";
27     }
28
29     public void accept(EventVisitor visitor) {
30         visitor.visit(this);
31     }
32
33 }
34
Popular Tags