Class TcpTransport

java.lang.Object
org.eclipse.jgit.transport.Transport
org.eclipse.jgit.transport.TcpTransport
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
SshTransport, TransportGitAnon

public abstract class TcpTransport extends Transport
The base class for transports based on TCP sockets. This class holds settings common for all TCP based transports.
  • Constructor Details

    • TcpTransport

      protected TcpTransport(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).
    • TcpTransport

      protected TcpTransport(URIish uri)
      Create a new transport instance without a local repository.
      Parameters:
      uri - the URI used to access the remote repository. This must be the URI passed to Transport.open(URIish).
      Since:
      3.5