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

public Class HttpClientConnectionFactory

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.HostnameVerifier, .SSLContext, .SSLSocket, .TrustManager, org.apache.http.conn.ssl.SSLConnectionSocketFactory, org.eclipse.jgit.transport.http.HttpConnection, .HttpConnectionFactory2, .NoCheckX509TrustManager, org.eclipse.jgit.transport.http.apache.internal.HttpApacheText, org.eclipse.jgit.util.HttpSupport

A factory returning instances of HttpClientConnection.
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

HttpClientConnectionFactoryback to summary
public HttpClientConnectionFactory()

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.apache back to summary

private Class HttpClientConnectionFactory.HttpClientSession

extends Object
implements GitSession
Class Inheritance
  • java.lang.Object
  • org.eclipse.jgit.transport.http.apache.HttpClientConnectionFactory.HttpClientSession
All Implemented Interfaces
org.eclipse.jgit.transport.http.HttpConnectionFactory2.GitSession

Field Summary

Modifier and TypeField and Description
private boolean
private SSLContext
private SSLConnectionSocketFactory

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 HttpClientConnection
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

isDefaultback to summary
private boolean isDefault
securityContextback to summary
private SSLContext securityContext
socketFactoryback to summary
private SSLConnectionSocketFactory socketFactory

Constructor Detail

HttpClientSessionback to summary
private HttpClientSession()

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 HttpClientConnection configure(HttpConnection connection, boolean sslVerify) throws IOException, 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:HttpClientConnection

the configured connection

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