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 java.lang.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(java.net.URL url)Creates a new connection to a destination defined by aURLHttpConnectioncreate(java.net.URL url, java.net.Proxy proxy)Creates a new connection to a destination defined by aURLusing a proxy
-
-
-
Method Detail
-
create
public HttpConnection create(java.net.URL url) throws java.io.IOException
Creates a new connection to a destination defined by aURL- Specified by:
createin interfaceHttpConnectionFactory- Parameters:
url- aURLobject.- Returns:
- a
HttpConnection - Throws:
java.io.IOException
-
create
public HttpConnection create(java.net.URL url, java.net.Proxy proxy) throws java.io.IOException
Creates 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:
java.io.IOException
-
-