Class HttpClientConnectionFactory
java.lang.Object
org.eclipse.jgit.transport.http.apache.HttpClientConnectionFactory
- All Implemented Interfaces:
HttpConnectionFactory
,HttpConnectionFactory2
A factory returning instances of
HttpClientConnection
.- Since:
- 3.3
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Nested classes/interfaces inherited from interface org.eclipse.jgit.transport.http.HttpConnectionFactory2
HttpConnectionFactory2.GitSession
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new connection to a destination defined by aURL
Creates a new connection to a destination defined by aURL
using a proxyCreates a newHttpConnectionFactory2.GitSession
instance that can be used with connections created by thisHttpConnectionFactory
instance.
-
Constructor Details
-
HttpClientConnectionFactory
public HttpClientConnectionFactory()
-
-
Method Details
-
create
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
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
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
-