Top Description Fields Constructors Methods
org.eclipse.jgit.transport

public abstract Class HttpTransport

extends Transport
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.transport.TransportAmazonS3, org.eclipse.jgit.transport.TransportHttp
Imports
org.eclipse.jgit.lib.Repository, org.eclipse.jgit.transport.http.HttpConnectionFactory, .JDKHttpConnectionFactory

The base class for transports that use HTTP as underlying protocol. This class allows customizing HTTP connection settings.

Field Summary

Modifier and TypeField and Description
protected static volatile HttpConnectionFactory
connectionFactory

factory for creating HTTP connections

Inherited from org.eclipse.jgit.transport.Transport:
DEFAULT_FETCH_THINDEFAULT_PUSH_THINDEFAULT_PUSH_USE_BITMAPSlocalprotocolREFSPEC_PUSH_ALLREFSPEC_TAGSuri

Constructor Summary

AccessConstructor and Description
protected
HttpTransport(Repository
the repository this instance will fetch into, or push out of. This must be the repository passed to open(Repository, URIish).
local
,
URIish
the URI used to access the remote repository. This must be the URI passed to open(Repository, URIish).
uri
)

Create a new transport instance.

protected
HttpTransport(URIish uri)

Create a minimal HTTP transport instance not tied to a single repository.

Method Summary

Modifier and TypeMethod and Description
public static HttpConnectionFactory

Returns:

the org.eclipse.jgit.transport.http.HttpConnectionFactory used to create new connections
getConnectionFactory
()

Get the org.eclipse.jgit.transport.http.HttpConnectionFactory used to create new connections

public static void
setConnectionFactory(HttpConnectionFactory
connection factory
cf
)

Set the org.eclipse.jgit.transport.http.HttpConnectionFactory to be used to create new connections

Inherited from org.eclipse.jgit.transport.Transport:
applyConfigclosefetchfetchfindRemoteRefUpdatesForfindRemoteRefUpdatesForfindRemoteRefUpdatesForfindRemoteRefUpdatesForfindTrackingRefNamegetCredentialsProvidergetDeepenNotsgetDeepenSincegetDepthgetFilterSpecgetObjectCheckergetOptionReceivePackgetOptionUploadPackgetPackConfiggetPushOptionsgetTagOptgetTimeoutgetTransportProtocolsgetURIisCheckFetchedObjectsisDryRunisFetchThinisPushAtomicisPushThinisPushUseBitmapsisRemoveDeletedRefsopenopenopenopenopenopenopenopenAllopenAllopenAllopenAllopenFetchopenFetchopenPushpushpushregistersetCheckFetchedObjectssetCredentialsProvidersetDeepenNotssetDeepenSincesetDepthsetDepthsetDryRunsetFetchThinsetFilterSpecsetHookErrorStreamsetHookOutputStreamsetObjectCheckersetOptionReceivePacksetOptionUploadPacksetPackConfigsetPushAtomicsetPushOptionssetPushThinsetPushUseBitmapssetRemoveDeletedRefssetTagOptsetTimeoutunregister

Field Detail

connectionFactoryback to summary
protected static volatile HttpConnectionFactory connectionFactory

factory for creating HTTP connections

Since
3.3

Constructor Detail

HttpTransportback to summary
protected HttpTransport(Repository local, URIish uri)

Create a new transport instance.

Parameters
local:Repository

the repository this instance will fetch into, or push out of. This must be the repository passed to open(Repository, URIish).

uri:URIish

the URI used to access the remote repository. This must be the URI passed to open(Repository, URIish).

HttpTransportback to summary
protected HttpTransport(URIish uri)

Create a minimal HTTP transport instance not tied to a single repository.

Parameters
uri:URIish

a org.eclipse.jgit.transport.URIish object.

Method Detail

getConnectionFactoryback to summary
public static HttpConnectionFactory getConnectionFactory()

Get the org.eclipse.jgit.transport.http.HttpConnectionFactory used to create new connections

Returns:HttpConnectionFactory

the org.eclipse.jgit.transport.http.HttpConnectionFactory used to create new connections

Since
3.3
setConnectionFactoryback to summary
public static void setConnectionFactory(HttpConnectionFactory cf)

Set the org.eclipse.jgit.transport.http.HttpConnectionFactory to be used to create new connections

Parameters
cf:HttpConnectionFactory

connection factory

Since
3.3