Top Description Inners Methods
org.eclipse.jgit.transport.http

public Interface HttpConnectionFactory2

extends HttpConnectionFactory
Known Direct Implementers
org.eclipse.jgit.transport.http.JDKHttpConnectionFactory
Imports
java.io.IOException, java.security.GeneralSecurityException, org.eclipse.jgit.annotations.NonNull

A HttpConnectionFactory that supports client-side sessions that can maintain state and configure connections.
Since
5.11

Nested and Inner Type Summary

Modifier and TypeClass and Description
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.

Method Summary

Modifier and TypeMethod and Description
public HttpConnectionFactory2.GitSession

Returns:

a new GitSession
newSession
()

Creates a new GitSession instance that can be used with connections created by this HttpConnectionFactory instance.

Inherited from org.eclipse.jgit.transport.http.HttpConnectionFactory:
createcreate

Method Detail

newSessionback to summary
public HttpConnectionFactory2.GitSession newSession()

Creates a new GitSession instance that can be used with connections created by this HttpConnectionFactory instance.

Returns:HttpConnectionFactory2.GitSession

a new GitSession

Annotations
@NonNull
org.eclipse.jgit.transport.http back to summary

public Interface HttpConnectionFactory2.GitSession

Known Direct Implementers
org.eclipse.jgit.transport.http.JDKHttpConnectionFactory.JdkConnectionSession

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 TypeMethod and Description
public void
close()

Closes the GitSession, releasing any internal state.

public HttpConnection

Returns:

the configured connection
configure
(HttpConnection
to configure; created by the same HttpConnectionFactory instance
connection
,
boolean
whether SSL is to be verified
sslVerify
)

Configure a just created HttpConnection.

Method Detail

closeback to summary
public void close()

Closes the GitSession, releasing any internal state.

configureback to summary
public HttpConnection configure(HttpConnection connection, boolean sslVerify) throws IOException, GeneralSecurityException

Configure a just created HttpConnection.

Parameters
connection:HttpConnection

to configure; created by the same HttpConnectionFactory instance

sslVerify:boolean

whether SSL is to be verified

Returns:HttpConnection

the configured connection

Annotations
@NonNull
Exceptions
IOException:
if the connection cannot be configured
GeneralSecurityException:
if the connection cannot be configured