KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > javacoding > jspider > api > model > Resource


1 package net.javacoding.jspider.api.model;
2
3
4 import java.net.URL JavaDoc;
5 import java.util.Date JavaDoc;
6
7
8 /**
9  *
10  * $Id: Resource.java,v 1.8 2003/04/09 17:08:03 vanrogu Exp $
11  *
12  * @author Günther Van Roey
13  */

14 public interface Resource {
15
16     public static final int STATE_DISCOVERED = 1;
17     public static final int STATE_FETCH_ERROR = 2;
18     public static final int STATE_FETCH_IGNORED = 3;
19     public static final int STATE_FETCH_FORBIDDEN = 4;
20     public static final int STATE_FETCHED = 5;
21     public static final int STATE_PARSE_ERROR = 6;
22     public static final int STATE_PARSE_IGNORED = 7;
23     public static final int STATE_PARSED = 8;
24
25     public int getState();
26
27     public String JavaDoc getStateName ();
28
29     public URL JavaDoc getURL();
30
31     public String JavaDoc getFileName();
32
33     public Site getSite();
34
35     public Folder getFolder();
36
37     public String JavaDoc getName();
38
39     public Date JavaDoc getDiscoveryTime();
40
41     public Resource[] getReferers();
42
43     public Decision getSpiderDecision ( );
44
45     public Decision getParseDecision ( );
46
47 }
48
Popular Tags