public interface ConnectionFactoryGiven a URL instance, produces an HttpURLConnection.
Methods
openConnection(URL url)
public abstract HttpURLConnection openConnection(URL url)Creates a new HttpURLConnection from the given url.
| Name | Description |
url |
URLthe URL to which the connection will be made |
| Type | Description |
HttpURLConnection |
the created connection object, which will still be in the pre-connected state |
| Type | Description |
IOException |
if there was a problem producing the connection |
ClassCastException |
if there was a problem producing the connection |