1 16 package org.mortbay.http; 17 import java.io.Serializable ; 18 import java.net.UnknownHostException ; 19 20 import org.mortbay.util.LifeCycle; 21 22 23 24 41 public interface HttpListener extends LifeCycle, Serializable 42 { 43 public static final String ATTRIBUTE="org.mortbay.http.HttpListener"; 44 45 46 51 public void setHttpServer(HttpServer server); 52 53 54 58 public HttpServer getHttpServer(); 59 60 61 66 public void setHost(String host) 67 throws UnknownHostException ; 68 69 70 75 public String getHost(); 76 77 78 81 public void setPort(int port); 82 83 84 87 public int getPort(); 88 89 90 93 public int getBufferSize(); 94 95 96 104 public int getBufferReserve(); 105 106 107 114 public String getDefaultScheme(); 115 116 117 126 public void customizeRequest(HttpConnection connection, 127 HttpRequest request); 128 129 130 138 public void persistConnection(HttpConnection connection); 139 140 141 146 public boolean isLowOnResources(); 147 148 149 154 public boolean isOutOfResources(); 155 156 157 162 public boolean isIntegral(HttpConnection connection); 163 164 165 171 public String getIntegralScheme(); 172 173 174 180 public int getIntegralPort(); 181 182 183 188 public boolean isConfidential(HttpConnection connection); 189 190 191 197 public String getConfidentialScheme(); 198 199 200 206 public int getConfidentialPort(); 207 208 209 216 public HttpHandler getHttpHandler(); 217 218 219 } 220 221 222 223 224 225 226 227 228 229 230 231 | Popular Tags |