Class DefaultConnectionFactory (1.43.1)

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
NameDescription
proxyProxy

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
NameDescription
urlURL
Returns
TypeDescription
HttpURLConnection
Exceptions
TypeDescription
IOException