Class DefaultConnectionFactory (1.43.2)

public class DefaultConnectionFactory implements ConnectionFactory

Default implementation of ConnectionFactory, which simply attempts to open the connection with an optional Proxy.

Inheritance

java.lang.Object > DefaultConnectionFactory

Implements

ConnectionFactory

Constructors

DefaultConnectionFactory()

public DefaultConnectionFactory()

DefaultConnectionFactory(Proxy proxy)

public DefaultConnectionFactory(Proxy proxy)
Parameter
Name Description
proxy Proxy

HTTP proxy or null to use the proxy settings from system properties

Methods

openConnection(URL url)

public HttpURLConnection openConnection(URL url)

Creates a new HttpURLConnection from the given url.

Parameter
Name Description
url URL
Returns
Type Description
HttpURLConnection
Exceptions
Type Description
IOException