Class HttpTransport

java.lang.Object
org.eclipse.jgit.transport.Transport
org.eclipse.jgit.transport.HttpTransport
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
TransportAmazonS3, TransportHttp

public abstract class HttpTransport extends Transport
The base class for transports that use HTTP as underlying protocol. This class allows customizing HTTP connection settings.
  • Field Details

    • connectionFactory

      protected static volatile HttpConnectionFactory connectionFactory
      factory for creating HTTP connections
      Since:
      3.3
  • Constructor Details

    • HttpTransport

      protected HttpTransport(Repository local, URIish uri)
      Create a new transport instance.
      Parameters:
      local - the repository this instance will fetch into, or push out of. This must be the repository passed to Transport.open(Repository, URIish).
      uri - the URI used to access the remote repository. This must be the URI passed to Transport.open(Repository, URIish).
    • HttpTransport

      protected HttpTransport(URIish uri)
      Create a minimal HTTP transport instance not tied to a single repository.
      Parameters:
      uri - a URIish object.
  • Method Details