| Package | Description | 
|---|---|
| java.net | Provides the classes for implementing networking applications. | 
| javax.net.ssl | Provides classes for the secure socket package. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | HttpURLConnectionA URLConnection with support for HTTP-specific features. | 
| class  | JarURLConnectionA URL Connection to a Java ARchive (JAR) file or an entry in a JAR
 file. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected URLConnection | JarURLConnection. jarFileURLConnectionThe connection to the JAR file URL, if the connection has been
 initiated. | 
| Modifier and Type | Method and Description | 
|---|---|
| URLConnection | URL. openConnection()Returns a  URLConnectioninstance that
 represents a connection to the remote object referred to by theURL. | 
| URLConnection | URL. openConnection(Proxy proxy)Same as  URL.openConnection(), except that the connection will be
 made through the specified proxy; Protocol handlers that do not
 support proxing will ignore the proxy parameter and make a
 normal connection. | 
| protected abstract URLConnection | URLStreamHandler. openConnection(URL u)Opens a connection to the object referenced by the
  URLargument. | 
| protected URLConnection | URLStreamHandler. openConnection(URL u,
              Proxy p)Same as openConnection(URL), except that the connection will be
 made through the specified proxy; Protocol handlers that do not
 support proxying will ignore the proxy parameter and make a
 normal connection. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Object | ContentHandler. getContent(URLConnection urlc)Given a URL connect stream positioned at the beginning of the
 representation of an object, this method reads that stream and
 creates an object from it. | 
| Object | ContentHandler. getContent(URLConnection urlc,
          Class[] classes)Given a URL connect stream positioned at the beginning of the
 representation of an object, this method reads that stream and
 creates an object that matches one of the types specified. | 
| abstract CacheRequest | ResponseCache. put(URI uri,
   URLConnection conn)The protocol handler calls this method after a resource has
 been retrieved, and the ResponseCache must decide whether or
 not to store the resource in its cache. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | HttpsURLConnectionHttpsURLConnectionextendsHttpURLConnectionwith support for https-specific features. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.