Package org.eclipse.jgit.transport.http
Interface HttpConnectionFactory2.GitSession
-
- Enclosing interface:
- HttpConnectionFactory2
public static interface HttpConnectionFactory2.GitSession
AGitSession
groups the multiple HTTP connectionsTransportHttp
uses for the requests it makes during a git fetch or push. AGitSession
can maintain client-side HTTPS state and can configure individual connections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes theHttpConnectionFactory2.GitSession
, releasing any internal state.HttpConnection
configure(HttpConnection connection, boolean sslVerify)
Configure a just createdHttpConnection
.
-
-
-
Method Detail
-
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.
-
-