]> source.dussan.org Git - jgit.git/commit
Make the supported Transports extensible and discoverable 66/2666/2
authorShawn O. Pearce <spearce@spearce.org>
Mon, 7 Mar 2011 23:01:49 +0000 (15:01 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 13 Mar 2011 23:23:56 +0000 (16:23 -0700)
commit305a8ac45f350580957743b3b3aa4c4eca0a6396
tree0fa60016c38e6c93fcd233111a94a65f705839dd
parent2a137d8dea69128cbe03ed2dab77ac5cc4f9c475
Make the supported Transports extensible and discoverable

The new TransportProtocol type describes what a particular Transport
implementation wants in order to support a connection.  3rd parties
can now plug into the Transport.open() logic by implementing their
own TransportProtocol and Transport classes, and registering with
Transport.register().

GUI applications can help the user configure a connection by looking
at the supported fields of a particular TransportProtocol type, which
makes the GUI more dynamic and may better support new Transports.

Change-Id: Iafd8e3a6285261412aac6cba8e2c333f8b7b76a5
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 files changed:
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackRefFilterTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/URIishTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/api/errors/InvalidRemoteException.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/Transport.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportAmazonS3.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportBundleFile.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitAnon.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportGitSsh.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportLocal.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportProtocol.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportSftp.java