public interface ConnectionFactory
URL instance, produces an HttpURLConnection.| Modifier and Type | Method and Description |
|---|---|
java.net.HttpURLConnection |
openConnection(java.net.URL url)
Creates a new
HttpURLConnection from the given url. |
java.net.HttpURLConnection openConnection(java.net.URL url)
throws java.io.IOException,
java.lang.ClassCastException
HttpURLConnection from the given url.url - the URL to which the connection will be madejava.io.IOException - if there was a problem producing the connectionjava.lang.ClassCastException - if the URL is not for an HTTP endpointCopyright © 2011-2018 Google. All Rights Reserved.