URLFoundEvent.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
- package net.javacoding.jspider.core.event.impl;
- import net.javacoding.jspider.core.SpiderContext;
- import net.javacoding.jspider.core.event.CoreEventVisitor;
- import net.javacoding.jspider.api.model.Folder;
- import java.net.URL;
- /**
- *
- * $Id: URLFoundEvent.java,v 1.5 2003/04/09 17:08:04 vanrogu Exp $
- *
- * @author G黱ther Van Roey
- */
- public class URLFoundEvent extends BaseCoreEventImpl {
- protected URL url;
- protected URL foundURL;
- public URLFoundEvent(SpiderContext context, URL url, URL foundURL) {
- super(context);
- this.url = url;
- this.foundURL = foundURL;
- }
- public URL getURL() {
- return url;
- }
- public URL getFoundURL() {
- return foundURL;
- }
- public void accept(URL url, CoreEventVisitor visitor) {
- visitor.visit(url, this);
- }
- }