KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > javacoding > jspider > core > event > impl > URLFoundEvent


1 package net.javacoding.jspider.core.event.impl;
2
3
4 import net.javacoding.jspider.core.SpiderContext;
5 import net.javacoding.jspider.core.event.CoreEventVisitor;
6 import net.javacoding.jspider.api.model.Folder;
7
8 import java.net.URL JavaDoc;
9
10
11 /**
12  *
13  * $Id: URLFoundEvent.java,v 1.5 2003/04/09 17:08:04 vanrogu Exp $
14  *
15  * @author Günther Van Roey
16  */

17 public class URLFoundEvent extends BaseCoreEventImpl {
18
19     protected URL JavaDoc url;
20     protected URL JavaDoc foundURL;
21
22     public URLFoundEvent(SpiderContext context, URL JavaDoc url, URL JavaDoc foundURL) {
23         super(context);
24         this.url = url;
25         this.foundURL = foundURL;
26     }
27
28     public URL JavaDoc getURL() {
29         return url;
30     }
31
32     public URL JavaDoc getFoundURL() {
33         return foundURL;
34     }
35
36     public void accept(URL JavaDoc url, CoreEventVisitor visitor) {
37         visitor.visit(url, this);
38     }
39
40 }
41
Popular Tags