Package org.eclipse.jgit.transport.http
Class JDKHttpConnectionFactory
- java.lang.Object
-
- org.eclipse.jgit.transport.http.JDKHttpConnectionFactory
-
- All Implemented Interfaces:
HttpConnectionFactory
public class JDKHttpConnectionFactory extends Object implements HttpConnectionFactory
A factory returning instances ofJDKHttpConnection- Since:
- 3.3
-
-
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 proxy
-
-
-
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- 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 interfaceHttpConnectionFactoryproxy- the proxy to be used- Returns:
- a
HttpConnection - Throws:
IOException
-
-