public class DefaultConnectionFactory extends Objectimplements ConnectionFactory
ConnectionFactory, which simply attempts to open the connection with an optional
Proxy.
| Constructor and Description |
|---|
DefaultConnectionFactory()
|
DefaultConnectionFactory(Proxy
|
public DefaultConnectionFactory()
public DefaultConnectionFactory(Proxyproxy)
proxy - HTTP proxy or
null to use the proxy settings from
system properties
public HttpURLConnectionopenConnection(URL url) throws IOException
ConnectionFactory
HttpURLConnection from the given
url.
openConnection in interface
ConnectionFactory
url - the URL to which the conneciton will be made
IOException - if there was a problem producing the connection