JDKHttpConnectionFactory
public interface HttpConnectionFactory
HttpConnection
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 |
HttpConnection create(URL url) throws IOException
URL
url
- HttpConnection
IOException
HttpConnection create(URL url, Proxy proxy) throws IOException
URL
using
a proxyurl
- proxy
- the proxy to be usedHttpConnection
IOException
Copyright © 2018. All rights reserved.