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