test/jdk/java/net/httpclient/http2/TLSConnection.java
changeset 48083 b1c1b4ef4be2
parent 47216 71c04702a3d5
child 49765 ee6f7a61f3a5
child 55973 4d9b002587db
equal deleted inserted replaced
48081:89829dd3cc54 48083:b1c1b4ef4be2
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 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.
    27 import java.io.OutputStream;
    27 import java.io.OutputStream;
    28 import java.net.URI;
    28 import java.net.URI;
    29 import java.net.URISyntaxException;
    29 import java.net.URISyntaxException;
    30 import jdk.incubator.http.HttpClient;
    30 import jdk.incubator.http.HttpClient;
    31 import jdk.incubator.http.HttpRequest;
    31 import jdk.incubator.http.HttpRequest;
    32 import jdk.incubator.http.HttpResponse;
    32 
    33 import javax.net.ssl.SSLParameters;
    33 import javax.net.ssl.SSLParameters;
    34 import javax.net.ssl.SSLSession;
    34 import javax.net.ssl.SSLSession;
    35 import static jdk.incubator.http.HttpRequest.BodyProcessor.fromString;
    35 import static jdk.incubator.http.HttpRequest.BodyPublisher.fromString;
    36 import static jdk.incubator.http.HttpResponse.BodyHandler.asString;
    36 import static jdk.incubator.http.HttpResponse.BodyHandler.asString;
    37 
    37 
    38 /*
    38 /*
    39  * @test
    39  * @test
    40  * @bug 8150769 8157107
    40  * @bug 8150769 8157107
    41  * @key intermittent
       
    42  * @library server
    41  * @library server
    43  * @summary Checks that SSL parameters can be set for HTTP/2 connection
    42  * @summary Checks that SSL parameters can be set for HTTP/2 connection
    44  * @modules jdk.incubator.httpclient/jdk.incubator.http.internal.common
    43  * @modules java.base/sun.net.www.http
       
    44  *          jdk.incubator.httpclient/jdk.incubator.http.internal.common
    45  *          jdk.incubator.httpclient/jdk.incubator.http.internal.frame
    45  *          jdk.incubator.httpclient/jdk.incubator.http.internal.frame
    46  *          jdk.incubator.httpclient/jdk.incubator.http.internal.hpack
    46  *          jdk.incubator.httpclient/jdk.incubator.http.internal.hpack
    47  * @run main/othervm TLSConnection
    47  * @run main/othervm TLSConnection
    48  */
    48  */
    49 public class TLSConnection {
    49 public class TLSConnection {