Lines Matching defs:svr
44 private static HttpServer svr = null;
143 if (svr != null)
144 return svr;
146 svr = new HttpServer();
147 (new Thread(svr)).start();
148 return svr;
152 if (svr != null) {
154 svr = null;
200 HttpServer svr = HttpServer.create();
204 { new URL("http://localhost:" + svr.port() + "/dir1/"),
205 new URL("http://localhost:" + svr.port() + "/dir2/") };
209 svr.counters().reset();
211 System.out.println(svr.counters());
213 if (svr.counters().getCount() > 0 ||
214 svr.counters().headCount() > 1) {
220 svr.counters().reset();
223 System.out.println(svr.counters());
224 if (svr.counters().getCount() > 1) {
229 svr.counters().reset();
236 System.out.println(svr.counters());
237 if (svr.counters().getCount() > 1) {
242 svr.shutdown();