TcpTransport.java

  1. /*
  2.  * Copyright (C) 2009, Constantine Plotnikov <constantine.plotnikov@gmail.com>
  3.  * Copyright (C) 2009, JetBrains s.r.o.
  4.  * Copyright (C) 2009, Shawn O. Pearce <spearce@spearce.org> and others
  5.  *
  6.  * This program and the accompanying materials are made available under the
  7.  * terms of the Eclipse Distribution License v. 1.0 which is available at
  8.  * https://www.eclipse.org/org/documents/edl-v10.php.
  9.  *
  10.  * SPDX-License-Identifier: BSD-3-Clause
  11.  */

  12. package org.eclipse.jgit.transport;

  13. import org.eclipse.jgit.lib.Repository;

  14. /**
  15.  * The base class for transports based on TCP sockets. This class
  16.  * holds settings common for all TCP based transports.
  17.  */
  18. public abstract class TcpTransport extends Transport {
  19.     /**
  20.      * Create a new transport instance.
  21.      *
  22.      * @param local
  23.      *            the repository this instance will fetch into, or push out of.
  24.      *            This must be the repository passed to
  25.      *            {@link #open(Repository, URIish)}.
  26.      * @param uri
  27.      *            the URI used to access the remote repository. This must be the
  28.      *            URI passed to {@link #open(Repository, URIish)}.
  29.      */
  30.     protected TcpTransport(Repository local, URIish uri) {
  31.         super(local, uri);
  32.     }

  33.     /**
  34.      * Create a new transport instance without a local repository.
  35.      *
  36.      * @param uri the URI used to access the remote repository. This must be the
  37.      *            URI passed to {@link #open(URIish)}.
  38.      * @since 3.5
  39.      */
  40.     protected TcpTransport(URIish uri) {
  41.         super(uri);
  42.     }
  43. }