Top Description Inners Constructors Methods
org.eclipse.jgit.transport.http

public Class JDKHttpConnectionFactory

extends Object
implements HttpConnectionFactory2
Class Inheritance
All Implemented Interfaces
org.eclipse.jgit.transport.http.HttpConnectionFactory2, org.eclipse.jgit.transport.http.HttpConnectionFactory
Imports
java.io.IOException, java.net.Proxy, .URL, java.security.GeneralSecurityException, java.text.MessageFormat, javax.net.ssl.HttpsURLConnection, .SSLContext, .SSLSocket, .SSLSocketFactory, .TrustManager, org.eclipse.jgit.internal.JGitText, org.eclipse.jgit.internal.transport.http.DelegatingSSLSocketFactory, org.eclipse.jgit.util.HttpSupport

A factory returning instances of org.eclipse.jgit.transport.http.JDKHttpConnection
Since
3.3

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public HttpConnection
create(URL
a java.net.URL object.
url
)

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory.create.

Creates a new connection to a destination defined by a java.net.URL

public HttpConnection
create(URL
a java.net.URL object.
url
,
Proxy
the proxy to be used
proxy
)

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory.create.

Creates a new connection to a destination defined by a java.net.URL using a proxy

public HttpConnectionFactory2.GitSession
newSession()

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory2.newSession.

Creates a new GitSession instance that can be used with connections created by this HttpConnectionFactory instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JDKHttpConnectionFactoryback to summary
public JDKHttpConnectionFactory()

Method Detail

createback to summary
public HttpConnection create(URL url) throws IOException

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory.create.

Doc from org.eclipse.jgit.transport.http.HttpConnectionFactory.create.

Creates a new connection to a destination defined by a java.net.URL

Parameters
url:URL

a java.net.URL object.

Returns:HttpConnection

a org.eclipse.jgit.transport.http.HttpConnection

Annotations
@Override
Exceptions
IOException:
if an IO error occurred
createback to summary
public HttpConnection create(URL url, Proxy proxy) throws IOException

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory.create.

Doc from org.eclipse.jgit.transport.http.HttpConnectionFactory.create.

Creates a new connection to a destination defined by a java.net.URL using a proxy

Parameters
url:URL

a java.net.URL object.

proxy:Proxy

the proxy to be used

Returns:HttpConnection

a org.eclipse.jgit.transport.http.HttpConnection

Annotations
@Override
Exceptions
IOException:
if an IO error occurred
newSessionback to summary
public HttpConnectionFactory2.GitSession newSession()

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory2.newSession.

Doc from org.eclipse.jgit.transport.http.HttpConnectionFactory2.newSession.

Creates a new GitSession instance that can be used with connections created by this HttpConnectionFactory instance.

Returns:HttpConnectionFactory2.GitSession

a new GitSession

Annotations
@Override
org.eclipse.jgit.transport.http back to summary

private Class JDKHttpConnectionFactory.JdkConnectionSession

extends Object
implements GitSession
Class Inheritance
  • java.lang.Object
  • org.eclipse.jgit.transport.http.JDKHttpConnectionFactory.JdkConnectionSession
All Implemented Interfaces
org.eclipse.jgit.transport.http.HttpConnectionFactory2.GitSession

Field Summary

Modifier and TypeField and Description
private SSLContext
private SSLSocketFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory2.GitSession.close.

Closes the GitSession, releasing any internal state.

public JDKHttpConnection
configure(HttpConnection
to configure; created by the same HttpConnectionFactory instance
connection
,
boolean
whether SSL is to be verified
sslVerify
)

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory2.GitSession.configure.

Configure a just created HttpConnection.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

securityContextback to summary
private SSLContext securityContext
socketFactoryback to summary
private SSLSocketFactory socketFactory

Constructor Detail

JdkConnectionSessionback to summary
private JdkConnectionSession()

Method Detail

closeback to summary
public void close()

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory2.GitSession.close.

Doc from org.eclipse.jgit.transport.http.HttpConnectionFactory2.GitSession.close.

Closes the GitSession, releasing any internal state.

Annotations
@Override
configureback to summary
public JDKHttpConnection configure(HttpConnection connection, boolean sslVerify) throws GeneralSecurityException

Implements org.eclipse.jgit.transport.http.HttpConnectionFactory2.GitSession.configure.

Doc from org.eclipse.jgit.transport.http.HttpConnectionFactory2.GitSession.configure.

Configure a just created HttpConnection.

Parameters
connection:HttpConnection

to configure; created by the same HttpConnectionFactory instance

sslVerify:boolean

whether SSL is to be verified

Returns:JDKHttpConnection

the configured connection

Annotations
@Override
Exceptions
GeneralSecurityException:
if the connection cannot be configured