1 package net.javacoding.jspider.api.model; 2 3 4 import java.net.URL ; 5 6 7 13 public interface Site { 14 15 19 public static final int STATE_DISCOVERED = 0; 20 21 25 public static final int STATE_ROBOTSTXT_HANDLED = 1; 26 27 31 public static final int STATE_ROBOTSTXT_ERROR = 2; 32 33 36 public static final int STATE_ROBOTSTXT_UNEXISTING = 3; 37 38 41 public static final int STATE_ROBOTSTXT_SKIPPED = 4; 42 43 44 public int getState(); 45 46 public String getHost(); 47 48 public int getPort(); 49 50 public boolean isRobotsTXTHandled(); 51 52 public boolean getObeyRobotsTXT(); 53 54 public boolean getFetchRobotsTXT(); 55 56 public URL getURL(); 57 58 public Folder[] getRootFolders(); 59 60 public Folder getRootFolder(String name); 61 62 public Resource[] getRootResources(); 63 64 public Resource[] getAllResources(); 65 66 public Cookie[] getCookies(); 67 68 public String getCookieString(); 69 70 public boolean getUseCookies(); 71 72 public boolean getUseProxy(); 73 74 public String getUserAgent ( ); 75 76 public boolean isBaseSite ( ); 77 78 public boolean mustHandle ( ); 79 80 } 81 | Popular Tags |