KickJava   Java API By Example, From Geeks To Geeks.

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


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.Resource;
6
7
8 /**
9  *
10  * $Id: ResourceDiscoveredEvent.java,v 1.2 2002/12/24 18:11:38 vanrogu Exp $
11  *
12  * @author GŁnther Van Roey
13  */

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