1 16 17 package org.apache.jetspeed.services.urlmanager; 18 19 import org.apache.turbine.services.Service; 20 import java.util.List ; 21 22 30 public interface URLManagerService extends Service { 31 32 35 public String SERVICE_NAME = "URLManager"; 36 37 40 public int STATUS_ANY = -1; 41 42 45 public int STATUS_UNKNOWN = 0; 46 47 50 public int STATUS_OK = 1; 51 52 55 public int STATUS_UNREACHABLE = 2; 56 57 60 public int STATUS_TEMPORARY_UNAVAILABLE = 4; 61 62 65 public int STATUS_CONTENT_ERROR = 8; 66 67 70 public int STATUS_BAD = STATUS_UNREACHABLE | STATUS_TEMPORARY_UNAVAILABLE | STATUS_CONTENT_ERROR; 71 72 77 public void register( String url ); 78 79 86 public void register( String url, int status ); 87 88 97 public void register( String url, int status, String message ); 98 99 105 public void register( URLInfo info ); 106 107 112 public void unregister( String url ); 113 114 121 public URLInfo getInfo( String url ); 122 123 131 public boolean isOK( String url ); 132 133 138 public List list(); 139 140 148 public List list( int status ); 149 150 156 public int getProxyPort( String protocol ); 157 158 164 public String getProxyHost( String protocol ); 165 166 } 167 | Popular Tags |