< prev index next >

test/jdk/java/net/httpclient/LargeHandshakeTest.java

Print this page
@@ -18,12 +18,10 @@
   *
   * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
   * or visit www.oracle.com if you need additional information or have any
   * questions.
   */
- import com.sun.net.httpserver.HttpServer;
- import com.sun.net.httpserver.HttpsConfigurator;
  import com.sun.net.httpserver.HttpsServer;
  
  import javax.net.ssl.KeyManagerFactory;
  import javax.net.ssl.SSLContext;
  import javax.net.ssl.TrustManagerFactory;

@@ -59,11 +57,11 @@
  import java.util.concurrent.LinkedBlockingQueue;
  import java.util.concurrent.ThreadPoolExecutor;
  import java.util.concurrent.TimeUnit;
  import java.util.concurrent.atomic.AtomicLong;
  import jdk.httpclient.test.lib.common.HttpServerAdapters;
- import jdk.httpclient.test.lib.http2.Http2TestServer;
+ import jdk.httpclient.test.lib.common.TestServerConfigurator;
  import static java.net.http.HttpClient.Version.HTTP_1_1;
  import static java.net.http.HttpClient.Version.HTTP_2;
  
  /**
   * @test

@@ -80,10 +78,11 @@
   *          BASE64_CERT constant printed by the test into the test.
   *          Then restore the original at run line and test again.
   * @library /test/lib /test/jdk/java/net/httpclient/lib
   * @build jdk.httpclient.test.lib.common.HttpServerAdapters jdk.test.lib.net.SimpleSSLContext
   *        DigestEchoServer
+  *        jdk.httpclient.test.lib.common.TestServerConfigurator
   * @run main/othervm -Dtest.requiresHost=true
   *                   -Djdk.httpclient.HttpClient.log=headers
   *                   -Djdk.internal.httpclient.debug=true
   *                   -Djdk.tls.maxHandshakeMessageSize=131072
   *                   LargeHandshakeTest

@@ -1009,11 +1008,11 @@
  
  
              // HTTPS/1.1
              HttpsServer sserver1 = HttpsServer.create(sa, 100);
              sserver1.setExecutor(executor);
-             sserver1.setHttpsConfigurator(new HttpsConfigurator(context));
+             sserver1.setHttpsConfigurator(new TestServerConfigurator(sa.getAddress(), context));
              https1Server = HttpTestServer.of(sserver1);
              https1Server.addHandler(new HttpTestLargeHandler(), "/LargeHandshakeTest/https1/");
              https1Server.start();
              https1URI = new URI("https://" + https1Server.serverAuthority() + "/LargeHandshakeTest/https1/");
  
< prev index next >