01: package net.javacoding.jspider.core.event.impl;
02:
03: import net.javacoding.jspider.core.SpiderContext;
04: import net.javacoding.jspider.core.event.CoreEventVisitor;
05: import net.javacoding.jspider.api.model.Folder;
06:
07: import java.net.URL;
08:
09: /**
10: *
11: * $Id: URLFoundEvent.java,v 1.5 2003/04/09 17:08:04 vanrogu Exp $
12: *
13: * @author Günther Van Roey
14: */
15: public class URLFoundEvent extends BaseCoreEventImpl {
16:
17: protected URL url;
18: protected URL foundURL;
19:
20: public URLFoundEvent(SpiderContext context, URL url, URL foundURL) {
21: super (context);
22: this .url = url;
23: this .foundURL = foundURL;
24: }
25:
26: public URL getURL() {
27: return url;
28: }
29:
30: public URL getFoundURL() {
31: return foundURL;
32: }
33:
34: public void accept(URL url, CoreEventVisitor visitor) {
35: visitor.visit(url, this);
36: }
37:
38: }
|