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 java.lang.Object implements HttpConnectionFactory2.GitSession
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isDefault
private javax.net.ssl.SSLContext
securityContext
private org.apache.http.conn.ssl.SSLConnectionSocketFactory
socketFactory
-
Constructor Summary
Constructors Modifier Constructor Description private
HttpClientSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes theHttpConnectionFactory2.GitSession
, releasing any internal state.HttpClientConnection
configure(HttpConnection connection, boolean sslVerify)
Configure a just createdHttpConnection
.
-
-
-
Method Detail
-
configure
public HttpClientConnection configure(HttpConnection connection, boolean sslVerify) throws java.io.IOException, java.security.GeneralSecurityException
Description copied from interface:HttpConnectionFactory2.GitSession
Configure a just createdHttpConnection
.- Specified by:
configure
in interfaceHttpConnectionFactory2.GitSession
- Parameters:
connection
- to configure; created by the sameHttpConnectionFactory
instancesslVerify
- whether SSL is to be verified- Returns:
- the configured
- Throws:
java.io.IOException
- if the connection cannot be configuredjava.security.GeneralSecurityException
- if the connection cannot be configured
-
close
public void close()
Description copied from interface:HttpConnectionFactory2.GitSession
Closes theHttpConnectionFactory2.GitSession
, releasing any internal state.- Specified by:
close
in interfaceHttpConnectionFactory2.GitSession
-
-