< prev index next >
   1 /*
   2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  */
  24 package java.net.http;
  25 
  26 import java.io.IOException;
  27 import java.net.Authenticator;
  28 import java.net.CookieManager;
  29 import java.net.ProxySelector;
  30 import java.net.URI;
  31 import static java.net.http.Utils.BUFSIZE;
  32 import java.nio.ByteBuffer;
  33 import java.nio.channels.SelectableChannel;
  34 import java.nio.channels.SelectionKey;
  35 import static java.nio.channels.SelectionKey.OP_CONNECT;
  36 import static java.nio.channels.SelectionKey.OP_READ;
  37 import static java.nio.channels.SelectionKey.OP_WRITE;
  38 import java.nio.channels.Selector;
  39 import java.util.HashMap;
  40 import java.util.LinkedList;
  41 import java.util.List;
  42 import java.util.Set;
  43 import java.util.concurrent.*;
  44 import java.security.NoSuchAlgorithmException;
  45 import java.util.ListIterator;
  46 import java.util.Optional;
  47 import java.util.concurrent.Executors;
  48 import java.util.concurrent.ThreadFactory;
  49 import javax.net.ssl.SSLContext;
  50 import javax.net.ssl.SSLParameters;
  51 
  52 class Http2Connection {
  53     static CompletableFuture<Http2Connection> createAsync(
  54         HttpConnection connection, Http2ClientImpl client2, Exchange exchange) {
  55             return null;
  56         }
  57 
  58     Http2Connection(HttpConnection connection, Http2ClientImpl client2,
  59             Exchange exchange) throws IOException, InterruptedException {
  60     }
  61 
  62     Stream getStream(int i) {return null;}
  63     Stream createStream(Exchange ex) {return null;}
  64     void putConnection() {}
  65 }
< prev index next >