GeezerVison is showing docs.oracle.com — Uses of Class java.net.URLConnection (Java SE 21 & JDK 21)
Uses of Class
java.net.URLConnection
Package
Description
Provides the classes for implementing networking applications.
Provides classes for the secure socket package.
-
Modifier and Type
Class
Description
class
A URLConnection with support for HTTP-specific features.
class
A URL Connection to a Java ARchive (JAR) file or an entry in a JAR
file.
Modifier and Type
Field
Description
The connection to the JAR file URL, if the connection has been
initiated.
Modifier and Type
Method
Description
Returns a
URLConnection instance that
represents a connection to the remote object referred to by the
URL.
Same as
URL.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.
Opens a connection to the object referenced by the
URL argument.
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
Description
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.
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.
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
Description
class
HttpsURLConnection extends HttpURLConnection
with support for https-specific features.