Class HttpClientConnectionFactory.HttpClientSession
java.lang.Object
org.eclipse.jgit.transport.http.apache.HttpClientConnectionFactory.HttpClientSession
- All Implemented Interfaces:
HttpConnectionFactory2.GitSession
- Enclosing class:
- HttpClientConnectionFactory
private static class HttpClientConnectionFactory.HttpClientSession
extends Object
implements HttpConnectionFactory2.GitSession
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate SSLContextprivate org.apache.http.conn.ssl.SSLConnectionSocketFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes theHttpConnectionFactory2.GitSession, releasing any internal state.configure(HttpConnection connection, boolean sslVerify) Configure a just createdHttpConnection.
-
Field Details
-
securityContext
-
socketFactory
private org.apache.http.conn.ssl.SSLConnectionSocketFactory socketFactory -
isDefault
private boolean isDefault
-
-
Constructor Details
-
HttpClientSession
private HttpClientSession()
-
-
Method Details
-
configure
public HttpClientConnection configure(HttpConnection connection, boolean sslVerify) throws IOException, GeneralSecurityException Description copied from interface:HttpConnectionFactory2.GitSessionConfigure a just createdHttpConnection.- Specified by:
configurein interfaceHttpConnectionFactory2.GitSession- Parameters:
connection- to configure; created by the sameHttpConnectionFactoryinstancesslVerify- whether SSL is to be verified- Returns:
- the configured
- Throws:
IOException- if the connection cannot be configuredGeneralSecurityException- if the connection cannot be configured
-
close
public void close()Description copied from interface:HttpConnectionFactory2.GitSessionCloses theHttpConnectionFactory2.GitSession, releasing any internal state.- Specified by:
closein interfaceHttpConnectionFactory2.GitSession
-