1 package net.javacoding.jspider.api.model; 2 3 4 import java.net.URL ; 5 import java.util.Date ; 6 7 8 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 getStateName (); 28 29 public URL getURL(); 30 31 public String getFileName(); 32 33 public Site getSite(); 34 35 public Folder getFolder(); 36 37 public String getName(); 38 39 public Date getDiscoveryTime(); 40 41 public Resource[] getReferers(); 42 43 public Decision getSpiderDecision ( ); 44 45 public Decision getParseDecision ( ); 46 47 } 48 | Popular Tags |