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 13 package org.eclipse.jgit.transport; 14 15 import org.eclipse.jgit.lib.Repository; 16 17 /** 18 * The base class for transports based on TCP sockets. This class 19 * holds settings common for all TCP based transports. 20 */ 21 public abstract class TcpTransport extends Transport { 22 /** 23 * Create a new transport instance. 24 * 25 * @param local 26 * the repository this instance will fetch into, or push out of. 27 * This must be the repository passed to 28 * {@link #open(Repository, URIish)}. 29 * @param uri 30 * the URI used to access the remote repository. This must be the 31 * URI passed to {@link #open(Repository, URIish)}. 32 */ 33 protected TcpTransport(Repository local, URIish uri) { 34 super(local, uri); 35 } 36 37 /** 38 * Create a new transport instance without a local repository. 39 * 40 * @param uri the URI used to access the remote repository. This must be the 41 * URI passed to {@link #open(URIish)}. 42 * @since 3.5 43 */ 44 protected TcpTransport(URIish uri) { 45 super(uri); 46 } 47 }