Module org.eclipse.jgit
Package org.eclipse.jgit.transport.http
Interface HttpConnectionFactory2.GitSession
-
- Enclosing interface:
- HttpConnectionFactory2
public static interface HttpConnectionFactory2.GitSessionAGitSessiongroups the multiple HTTP connectionsTransportHttpuses for the requests it makes during a git fetch or push. AGitSessioncan maintain client-side HTTPS state and can configure individual connections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes theHttpConnectionFactory2.GitSession, releasing any internal state.HttpConnectionconfigure(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 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
void close()
Closes theHttpConnectionFactory2.GitSession, releasing any internal state.
-
-