public interface ConnectionFactory
URL instance, produces an
HttpURLConnection.
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnection |
openConnection(URL
Creates a new
HttpURLConnection from the given
url.
|
HttpURLConnectionopenConnection(URL url) throws IOException , ClassCastException
HttpURLConnection from the given
url.
url - the URL to which the conneciton will be made
IOException - if there was a problem producing the connection
ClassCastException - if the URL is not for an HTTP endpoint