- java.lang.Object
-
- org.eclipse.jgit.transport.http.JDKHttpConnectionFactory
-
- All Implemented Interfaces:
HttpConnectionFactory,HttpConnectionFactory2
public class JDKHttpConnectionFactory extends Object implements HttpConnectionFactory2
A factory returning instances ofJDKHttpConnection- 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 JDKHttpConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpConnectioncreate(URL url)Creates a new connection to a destination defined by aURLHttpConnectioncreate(URL url, Proxy proxy)Creates a new connection to a destination defined by aURLusing a proxyHttpConnectionFactory2.GitSessionnewSession()Creates a newHttpConnectionFactory2.GitSessioninstance that can be used with connections created by thisHttpConnectionFactoryinstance.
-
-
-
Method Detail
-
create
public HttpConnection create(URL url) throws IOException
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
public HttpConnection create(URL url, Proxy proxy) throws IOException
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
public HttpConnectionFactory2.GitSession 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
-
-