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