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 classNested 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 aURLCreates a new connection to a destination defined by aURLusing a proxyCreates a newHttpConnectionFactory2.GitSessioninstance that can be used with connections created by thisHttpConnectionFactoryinstance.
-
Constructor Details
-
HttpClientConnectionFactory
public HttpClientConnectionFactory()
-
-
Method Details
-
create
Description copied from interface:HttpConnectionFactoryCreates a new connection to a destination defined by aURL- Specified by:
createin interfaceHttpConnectionFactory- Parameters:
url- aURLobject.- Returns:
- a
HttpConnection - Throws:
IOException
-
create
Description copied from interface:HttpConnectionFactoryCreates a new connection to a destination defined by aURLusing a proxy- Specified by:
createin interfaceHttpConnectionFactory- Parameters:
url- aURLobject.proxy- the proxy to be used- Returns:
- a
HttpConnection - Throws:
IOException
-
newSession
Description copied from interface:HttpConnectionFactory2Creates a newHttpConnectionFactory2.GitSessioninstance that can be used with connections created by thisHttpConnectionFactoryinstance.- Specified by:
newSessionin interfaceHttpConnectionFactory2- Returns:
- a new
HttpConnectionFactory2.GitSession
-