If for the URL's protocol (such as HTTP or JAR), there exists a public,
specialized URLConnection subclass belonging to one of the following packages
or one of their subpackages: java.lang, java.io, java.util, java.net,
the connection returned will be of that subclass.
For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.
1. The connection object is created by invoking the openConnection method on a URL.
2. The setup parameters and general request properties are manipulated.
3. The actual connection to the remote object is made, using the connect method.
4. The remote object becomes available. The header fields and the contents of the remote object can be accessed.
What are you doing in my house? Get 'em tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton