URLRelatedBaseEventImpl.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
源码类别:

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.core.event.impl;
  2. import net.javacoding.jspider.core.SpiderContext;
  3. import net.javacoding.jspider.core.event.CoreEventVisitor;
  4. import java.net.URL;
  5. /**
  6.  *
  7.  * $Id: URLRelatedBaseEventImpl.java,v 1.2 2003/02/06 17:22:24 vanrogu Exp $
  8.  *
  9.  * @author G黱ther Van Roey
  10.  */
  11. public class URLRelatedBaseEventImpl extends BaseCoreEventImpl {
  12.     protected URL url;
  13.     public URLRelatedBaseEventImpl(SpiderContext context, URL url) {
  14.         super(context);
  15.         this.url = url;
  16.     }
  17.     public URL getURL() {
  18.         return url;
  19.     }
  20.     public void accept(URL url, CoreEventVisitor visitor) {
  21.         visitor.visit(url, this);
  22.     }
  23. }