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