Class HttpClientConnectionFactory
- java.lang.Object
-
- org.eclipse.jgit.transport.http.apache.HttpClientConnectionFactory
-
- All Implemented Interfaces:
HttpConnectionFactory
,HttpConnectionFactory2
public class HttpClientConnectionFactory extends Object implements HttpConnectionFactory2
A factory returning instances ofHttpClientConnection
.- Since:
- 3.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jgit.transport.http.HttpConnectionFactory2
HttpConnectionFactory2.GitSession
-
-
Constructor Summary
Constructors Constructor Description HttpClientConnectionFactory()
-
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 proxyHttpConnectionFactory2.GitSession
newSession()
Creates a newHttpConnectionFactory2.GitSession
instance that can be used with connections created by thisHttpConnectionFactory
instance.
-
-
-
Method Detail
-
create
public HttpConnection create(URL url) throws IOException
Description copied from interface:HttpConnectionFactory
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
Description copied from interface:HttpConnectionFactory
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
-
newSession
public HttpConnectionFactory2.GitSession newSession()
Description copied from interface:HttpConnectionFactory2
Creates a newHttpConnectionFactory2.GitSession
instance that can be used with connections created by thisHttpConnectionFactory
instance.- Specified by:
newSession
in interfaceHttpConnectionFactory2
- Returns:
- a new
HttpConnectionFactory2.GitSession
-
-