HttpConnectionFactorypublic class JDKHttpConnectionFactory extends Object implements HttpConnectionFactory
JDKHttpConnection| Constructor | Description |
|---|---|
JDKHttpConnectionFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
HttpConnection |
create(URL url) |
Creates a new connection to a destination defined by a
URL |
HttpConnection |
create(URL url,
Proxy proxy) |
Creates a new connection to a destination defined by a
URL using
a proxy |
public HttpConnection create(URL url) throws IOException
HttpConnectionFactoryURLcreate in interface HttpConnectionFactoryHttpConnectionIOExceptionpublic HttpConnection create(URL url, Proxy proxy) throws IOException
HttpConnectionFactoryURL using
a proxycreate in interface HttpConnectionFactoryproxy - the proxy to be usedHttpConnectionIOExceptionCopyright © 2018. All rights reserved.