1 /*
2  * Copyright (c) 1995, 2011, 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  * questions.
24  */
25 
26 package sun.net.www;
27 
28 @SuppressWarnings({"unchecked", "deprecation", "all"})
29 public abstract class URLConnection extends java.net.URLConnection {
30 
31     @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
URLConnection(java.net.URL u)32     public URLConnection(java.net.URL u) {
33         super(null);
34         throw new RuntimeException("Stub!");
35     }
36 
getProperties()37     public sun.net.www.MessageHeader getProperties() {
38         throw new RuntimeException("Stub!");
39     }
40 
41     @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
setProperties(sun.net.www.MessageHeader properties)42     public void setProperties(sun.net.www.MessageHeader properties) {
43         throw new RuntimeException("Stub!");
44     }
45 
setRequestProperty(java.lang.String key, java.lang.String value)46     public void setRequestProperty(java.lang.String key, java.lang.String value) {
47         throw new RuntimeException("Stub!");
48     }
49 
addRequestProperty(java.lang.String key, java.lang.String value)50     public void addRequestProperty(java.lang.String key, java.lang.String value) {
51         throw new RuntimeException("Stub!");
52     }
53 
getRequestProperty(java.lang.String key)54     public java.lang.String getRequestProperty(java.lang.String key) {
55         throw new RuntimeException("Stub!");
56     }
57 
58     public java.util.Map<java.lang.String, java.util.List<java.lang.String>>
getRequestProperties()59             getRequestProperties() {
60         throw new RuntimeException("Stub!");
61     }
62 
getHeaderField(java.lang.String name)63     public java.lang.String getHeaderField(java.lang.String name) {
64         throw new RuntimeException("Stub!");
65     }
66 
getHeaderFieldKey(int n)67     public java.lang.String getHeaderFieldKey(int n) {
68         throw new RuntimeException("Stub!");
69     }
70 
getHeaderField(int n)71     public java.lang.String getHeaderField(int n) {
72         throw new RuntimeException("Stub!");
73     }
74 
getContentType()75     public java.lang.String getContentType() {
76         throw new RuntimeException("Stub!");
77     }
78 
setContentType(java.lang.String type)79     public void setContentType(java.lang.String type) {
80         throw new RuntimeException("Stub!");
81     }
82 
getContentLength()83     public int getContentLength() {
84         throw new RuntimeException("Stub!");
85     }
86 
setContentLength(int length)87     protected void setContentLength(int length) {
88         throw new RuntimeException("Stub!");
89     }
90 
canCache()91     public boolean canCache() {
92         throw new RuntimeException("Stub!");
93     }
94 
close()95     public void close() {
96         throw new RuntimeException("Stub!");
97     }
98 
setProxiedHost(java.lang.String host)99     public static synchronized void setProxiedHost(java.lang.String host) {
100         throw new RuntimeException("Stub!");
101     }
102 
isProxiedHost(java.lang.String host)103     public static synchronized boolean isProxiedHost(java.lang.String host) {
104         throw new RuntimeException("Stub!");
105     }
106 
107     private int contentLength = -1; // 0xffffffff
108 
109     private java.lang.String contentType;
110 
111     protected sun.net.www.MessageHeader properties;
112 
113     private static java.util.HashMap<java.lang.String, java.lang.Void> proxiedHosts;
114 }
115