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

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.api.model;
  2. import java.net.URL;
  3. import java.util.Date;
  4. /**
  5.  *
  6.  * $Id: Resource.java,v 1.8 2003/04/09 17:08:03 vanrogu Exp $
  7.  *
  8.  * @author G黱ther Van Roey
  9.  */
  10. public interface Resource {
  11.     public static final int STATE_DISCOVERED = 1;
  12.     public static final int STATE_FETCH_ERROR = 2;
  13.     public static final int STATE_FETCH_IGNORED = 3;
  14.     public static final int STATE_FETCH_FORBIDDEN = 4;
  15.     public static final int STATE_FETCHED = 5;
  16.     public static final int STATE_PARSE_ERROR = 6;
  17.     public static final int STATE_PARSE_IGNORED = 7;
  18.     public static final int STATE_PARSED = 8;
  19.     public int getState();
  20.     public String getStateName ();
  21.     public URL getURL();
  22.     public String getFileName();
  23.     public Site getSite();
  24.     public Folder getFolder();
  25.     public String getName();
  26.     public Date getDiscoveryTime();
  27.     public Resource[] getReferers();
  28.     public Decision getSpiderDecision ( );
  29.     public Decision getParseDecision ( );
  30. }