public class JDKHttpConnectionFactory extends Object implements HttpConnectionFactory
JDKHttpConnection
Constructor and Description |
---|
JDKHttpConnectionFactory() |
Modifier and Type | Method and 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
URL
create
in interface HttpConnectionFactory
url
- a URL
object.HttpConnection
IOException
public HttpConnection create(URL url, Proxy proxy) throws IOException
URL
using a proxycreate
in interface HttpConnectionFactory
url
- a URL
object.proxy
- the proxy to be usedHttpConnection
IOException
Copyright © 2020 Eclipse JGit Project. All rights reserved.