Package org.eclipse.jgit.transport.http
Interface HttpConnectionFactory2.GitSession
- All Known Implementing Classes:
HttpClientConnectionFactory.HttpClientSession
,JDKHttpConnectionFactory.JdkConnectionSession
- Enclosing interface:
- HttpConnectionFactory2
public static interface HttpConnectionFactory2.GitSession
A
GitSession
groups the multiple HTTP connections
TransportHttp
uses for
the requests it makes during a git fetch or push. A GitSession
can maintain client-side HTTPS state and can configure individual
connections.-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes theHttpConnectionFactory2.GitSession
, releasing any internal state.configure
(HttpConnection connection, boolean sslVerify) Configure a just createdHttpConnection
.
-
Method Details
-
configure
@NonNull HttpConnection configure(@NonNull HttpConnection connection, boolean sslVerify) throws IOException, GeneralSecurityException Configure a just createdHttpConnection
.- Parameters:
connection
- to configure; created by the sameHttpConnectionFactory
instancesslVerify
- whether SSL is to be verified- Returns:
- the configured
- Throws:
IOException
- if the connection cannot be configuredGeneralSecurityException
- if the connection cannot be configured
-
close
void close()Closes theHttpConnectionFactory2.GitSession
, releasing any internal state.
-