Searched refs:httpServer (Results 1 - 20 of 20) sorted by relevance

/openjdk7/jdk/test/sun/net/www/protocol/http/
H A DAsyncDisconnect.java40 com.sun.net.httpserver.HttpServer httpServer; field in class:AsyncDisconnect
60 InetSocketAddress address = httpServer.getAddress();
78 httpServer.stop(1);
95 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
98 HttpContext ctx = httpServer.createContext("/test/", httpHandler);
101 httpServer.setExecutor(executorService);
102 httpServer.start();
H A DUserAuth.java41 com.sun.net.httpserver.HttpServer httpServer; field in class:UserAuth
59 InetSocketAddress address = httpServer.getAddress();
74 httpServer.stop(1);
83 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
86 HttpContext ctx = httpServer.createContext("/redirect/", new RedirectHandler());
87 HttpContext ctx1 = httpServer.createContext("/doStuff/", new HasAuthHandler());
90 httpServer.setExecutor(executorService);
91 httpServer.start();
96 InetSocketAddress address = httpServer.getAddress();
H A DStreamingOutputStream.java42 com.sun.net.httpserver.HttpServer httpServer; field in class:StreamingOutputStream
59 InetSocketAddress address = httpServer.getAddress();
82 httpServer.stop(1);
89 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
90 HttpContext ctx = httpServer.createContext("/test/", new MyHandler());
91 httpServer.start();
H A DUserCookie.java38 com.sun.net.httpserver.HttpServer httpServer; field in class:UserCookie
58 InetSocketAddress address = httpServer.getAddress();
72 httpServer.stop(1);
80 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
83 HttpContext ctx = httpServer.createContext("/test/", new MyHandler());
85 httpServer.start();
H A DB6518816.java39 com.sun.net.httpserver.HttpServer httpServer; field in class:B6518816
68 InetSocketAddress address = httpServer.getAddress();
97 httpServer.stop(1);
98 httpServer = null;
122 httpServer.stop(1);
132 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
135 HttpContext ctx = httpServer.createContext("/test/", new MyHandler());
138 httpServer.setExecutor(executorService);
139 httpServer.start();
H A DB6369510.java40 com.sun.net.httpserver.HttpServer httpServer; field in class:B6369510
60 InetSocketAddress address = httpServer.getAddress();
85 httpServer.stop(1);
94 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
97 HttpContext ctx = httpServer.createContext("/test/", new MyHandler());
100 httpServer.setExecutor(executorService);
101 httpServer.start();
H A DB6641309.java39 com.sun.net.httpserver.HttpServer httpServer; field in class:B6641309
60 InetSocketAddress address = httpServer.getAddress();
86 httpServer.stop(1);
95 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
98 HttpContext ctx = httpServer.createContext("/test/", new MyHandler());
101 httpServer.setExecutor(executorService);
102 httpServer.start();
H A DB6660405.java39 com.sun.net.httpserver.HttpServer httpServer; field in class:B6660405
108 InetSocketAddress address = httpServer.getAddress();
127 httpServer.stop(1);
136 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
139 HttpContext ctx = httpServer.createContext("/test/", new MyHandler());
142 httpServer.setExecutor(executorService);
143 httpServer.start();
H A DChunkedErrorStream.java67 com.sun.net.httpserver.HttpServer httpServer; field in class:ChunkedErrorStream
88 httpServer.stop(1);
96 InetSocketAddress address = httpServer.getAddress();
144 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
147 httpServer.createContext("/test/first", new FirstHandler());
148 httpServer.createContext("/test/second", new SecondHandler());
150 httpServer.start();
H A DB5017051.java57 com.sun.net.httpserver.HttpServer httpServer; field in class:B5017051
80 InetSocketAddress address = httpServer.getAddress();
118 httpServer.stop(1);
127 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
130 HttpContext ctx = httpServer.createContext("/test/", new MyHandler());
136 HttpContext ctx2 = httpServer.createContext("/test2/", new MyHandler2());
140 httpServer.setExecutor(executorService);
141 httpServer.start();
H A DHttpOnly.java216 HttpServer httpServer = HttpServer.create(new InetSocketAddress(0), 0);
217 httpServer.createContext(URI_PATH, new SimpleHandler());
218 httpServer.start();
219 return httpServer;
/openjdk7/jdk/test/sun/net/www/http/ChunkedInputStream/
H A DTestAvailable.java40 com.sun.net.httpserver.HttpServer httpServer; field in class:TestAvailable
60 InetSocketAddress address = httpServer.getAddress();
93 httpServer.stop(1);
104 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
107 HttpContext ctx = httpServer.createContext("/testAvailable/", new MyHandler());
110 httpServer.setExecutor(executorService);
111 httpServer.start();
H A DChunkedEncodingTest.java85 HttpServer httpServer = HttpServer.create(new InetSocketAddress(0), 0);
87 httpServer.createContext("/chunked/", httpHandler);
88 httpServer.start();
89 return httpServer;
/openjdk7/jdk/test/sun/net/www/http/HttpClient/
H A DRetryPost.java35 com.sun.net.httpserver.HttpServer httpServer; field in class:RetryPost
57 InetSocketAddress address = httpServer.getAddress();
78 httpServer.stop(1);
87 httpServer = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(0), 0);
90 HttpContext ctx = httpServer.createContext("/test/", httpHandler);
93 httpServer.setExecutor(executorService);
94 httpServer.start();
H A DProxyFromCache.java61 SimpleServer httpServer = new SimpleServer(httpSSocket);
62 httpServer.start();
92 httpServer.terminate();
94 int httpCount = httpServer.getConnectionCount();
/openjdk7/jdk/test/java/net/URLClassLoader/closetest/
H A DCloseTest.java138 static HttpServer httpServer; field in class:CloseTest
141 return httpServer;
145 int port = httpServer.getAddress().getPort();
151 httpServer = HttpServer.create (new InetSocketAddress(0), 10);
152 HttpContext ctx = httpServer.createContext (
155 httpServer.start();
/openjdk7/jdk/test/sun/misc/JarIndex/metaInfFilenames/
H A DBasic.java98 static JarHttpServer httpServer; field in class:Basic
108 httpServer = new JarHttpServer(testClassesDir);
109 httpServer.start();
111 doTest(httpServer.getAddress());
116 if (httpServer != null) { httpServer.stop(2); }
260 httpServer.reset();
280 debug("HttpServer: " + httpServer);
282 if (!expectbDotJar && httpServer.bDotJar > 0) {
286 if (!expectcDotJar && httpServer
393 final HttpServer httpServer; field in class:Basic.JarHttpServer
[all...]
/openjdk7/jdk/test/com/sun/net/httpserver/bugs/
H A DFixedLengthInputStream.java48 HttpServer httpServer = startHttpServer();
49 int port = httpServer.getAddress().getPort();
76 httpServer.stop(0);
93 HttpServer httpServer = HttpServer.create(new InetSocketAddress(0), 0);
94 httpServer.createContext("/flis/", new MyHandler(POST_SIZE));
95 httpServer.start();
96 return httpServer;
H A DB6373555.java47 static HttpServer httpServer; field in class:B6373555
58 httpServer = createHttpServer(execs);
59 port = httpServer.getAddress().getPort();
61 httpServer.start();
82 httpServer.stop(0);
/openjdk7/jdk/test/java/net/HttpURLConnection/
H A DUnmodifiableMaps.java81 HttpServer httpServer = HttpServer.create(new InetSocketAddress(0), 0);
82 httpServer.createContext("/foo", new SimpleHandler());
83 httpServer.start();
84 return httpServer;

Completed in 43 milliseconds