Package org.eclipse.jgit.transport.http
Class JDKHttpConnectionFactory
- java.lang.Object
-
- org.eclipse.jgit.transport.http.JDKHttpConnectionFactory
-
- All Implemented Interfaces:
HttpConnectionFactory
public class JDKHttpConnectionFactory extends Object implements HttpConnectionFactory
A factory returning instances ofJDKHttpConnection
- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description JDKHttpConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpConnection
create(URL url)
Creates a new connection to a destination defined by aURL
HttpConnection
create(URL url, Proxy proxy)
Creates a new connection to a destination defined by aURL
using a proxy
-
-
-
Method Detail
-
create
public HttpConnection create(URL url) throws IOException
Creates a new connection to a destination defined by aURL
- Specified by:
create
in interfaceHttpConnectionFactory
- Parameters:
url
- aURL
object.- Returns:
- a
HttpConnection
- Throws:
IOException
-
create
public HttpConnection create(URL url, Proxy proxy) throws IOException
Creates a new connection to a destination defined by aURL
using a proxy- Specified by:
create
in interfaceHttpConnectionFactory
- Parameters:
url
- aURL
object.proxy
- the proxy to be used- Returns:
- a
HttpConnection
- Throws:
IOException
-
-