Package org.eclipse.jgit.transport.http
Interface HttpConnectionFactory
-
- All Known Subinterfaces:
HttpConnectionFactory2
- All Known Implementing Classes:
HttpClientConnectionFactory
,JDKHttpConnectionFactory
public interface HttpConnectionFactory
The interface of a factory returningHttpConnection
- Since:
- 3.3
-
-
Method Summary
All Methods Instance Methods Abstract 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
HttpConnection create(URL url) throws IOException
Creates a new connection to a destination defined by aURL
- Parameters:
url
- aURL
object.- Returns:
- a
HttpConnection
- Throws:
IOException
-
create
HttpConnection create(URL url, Proxy proxy) throws IOException
Creates a new connection to a destination defined by aURL
using a proxy- Parameters:
url
- aURL
object.proxy
- the proxy to be used- Returns:
- a
HttpConnection
- Throws:
IOException
-
-