Uses of Class
java.net.URLConnection
Packages that useURLConnection
Package
Description
Provides the classes for implementing networking applications.
Provides classes for the secure socket package.
Uses ofURLConnection injava.net
Subclasses ofURLConnection injava.netModifier and TypeClassDescriptionclassA URLConnection with support for HTTP-specific features.classA URL Connection to a Java ARchive (JAR) file or an entry in a JAR file.Fields injava.net declared asURLConnectionModifier and TypeFieldDescriptionprotectedURLConnectionJarURLConnection.jarFileURLConnectionThe connection to the JAR file URL, if the connection has been initiated.Methods injava.net that returnURLConnectionModifier and TypeMethodDescriptionURL.openConnection()Returns aURLConnectioninstance that represents a connection to the remote object referred to by theURL.URL.openConnection(Proxy proxy) Same asURL.openConnection(), 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.protected abstractURLConnectionURLStreamHandler.openConnection(URL u) Opens a connection to the object referenced by theURLargument.protectedURLConnectionURLStreamHandler.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.Methods injava.net with parameters of typeURLConnectionModifier and TypeMethodDescriptionabstractObjectContentHandler.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.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.abstractCacheRequestResponseCache.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.Uses ofURLConnection injavax.net.ssl
Subclasses ofURLConnection injavax.net.sslModifier and TypeClassDescriptionclassHttpsURLConnectionextendsHttpURLConnectionwith support for https-specific features.