jdk/test/java/net/httpclient/http2/FixedThreadPoolTest.java
changeset 45535 4b19310ae4ee
parent 43984 f33383dcb1fb
child 45716 4e40b6e09064
equal deleted inserted replaced
45534:f0b3d467215e 45535:4b19310ae4ee
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    60         try {
    60         try {
    61             SimpleSSLContext sslct = new SimpleSSLContext();
    61             SimpleSSLContext sslct = new SimpleSSLContext();
    62             sslContext = sslct.get();
    62             sslContext = sslct.get();
    63             client = getClient();
    63             client = getClient();
    64             httpServer = new Http2TestServer(false, 0, exec, sslContext);
    64             httpServer = new Http2TestServer(false, 0, exec, sslContext);
    65             httpServer.addHandler(new EchoHandler(), "/");
    65             httpServer.addHandler(new Http2EchoHandler(), "/");
    66             httpPort = httpServer.getAddress().getPort();
    66             httpPort = httpServer.getAddress().getPort();
    67 
    67 
    68             httpsServer = new Http2TestServer(true, 0, exec, sslContext);
    68             httpsServer = new Http2TestServer(true, 0, exec, sslContext);
    69             httpsServer.addHandler(new EchoHandler(), "/");
    69             httpsServer.addHandler(new Http2EchoHandler(), "/");
    70 
    70 
    71             httpsPort = httpsServer.getAddress().getPort();
    71             httpsPort = httpsServer.getAddress().getPort();
    72             httpURIString = "http://127.0.0.1:" + httpPort + "/foo/";
    72             httpURIString = "http://127.0.0.1:" + httpPort + "/foo/";
    73             httpsURIString = "https://127.0.0.1:" + httpsPort + "/bar/";
    73             httpsURIString = "https://127.0.0.1:" + httpsPort + "/bar/";
    74 
    74