public class DefaultHttpConnectionFactory extends Object implements HttpConnectionFactory
HttpConnectionFactory implementation which uses URL#openConnection().| Constructor and Description |
|---|
DefaultHttpConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureConnection(HttpURLConnection connection) |
HttpURLConnection |
openConnection(String url)
Opens a new connection.
|
public HttpURLConnection openConnection(String url) throws MalformedURLException, IOException
HttpConnectionFactoryopenConnection in interface HttpConnectionFactoryurl - URL to which to open connection via HTTP/HTTPS.MalformedURLException - if URL is not correctIOException - if any other error occurs (like no
route to host)protected void configureConnection(HttpURLConnection connection)
Copyright © 2015. All Rights Reserved.