Mercurial > jhg
diff src/org/tmatesoft/hg/internal/remote/RemoteConnectorDescriptor.java @ 699:a483b2b68a2e
Provisional APIs and respective implementation for http, https and ssh remote repositories
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 08 Aug 2013 19:18:50 +0200 |
parents | 822f3a83ff57 |
children | 992fa84e7885 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/remote/RemoteConnectorDescriptor.java Tue Aug 06 21:18:33 2013 +0200 +++ b/src/org/tmatesoft/hg/internal/remote/RemoteConnectorDescriptor.java Thu Aug 08 19:18:50 2013 +0200 @@ -22,8 +22,6 @@ import org.tmatesoft.hg.core.HgBadArgumentException; import org.tmatesoft.hg.core.SessionContext; -import org.tmatesoft.hg.repo.HgLookup.Authenticator; -import org.tmatesoft.hg.repo.HgLookup.RemoteDescriptor; import org.tmatesoft.hg.repo.HgRemoteRepository; import org.tmatesoft.hg.util.Pair; @@ -38,7 +36,7 @@ * @author Artem Tikhomirov * @author TMate Software Ltd. */ -public class RemoteConnectorDescriptor implements RemoteDescriptor { +public class RemoteConnectorDescriptor implements HgRemoteRepository.RemoteDescriptor { private Map<String, Pair<ClassLoader, String>> connFactory; private final URI uri; @@ -56,11 +54,6 @@ return uri; } - public Authenticator getAuth() { - // TODO Auto-generated method stub - return null; - } - public Connector createConnector() throws HgBadArgumentException { Pair<ClassLoader, String> connectorToBe = connFactory.get(uri.getScheme()); if (connectorToBe == null || connectorToBe.second() == null) { @@ -95,7 +88,7 @@ knownConnectors.put("ssh", new Pair<ClassLoader, String>(cl, SshConnector.class.getName())); } - public RemoteDescriptor get(SessionContext ctx, URI uri) { + public HgRemoteRepository.RemoteDescriptor get(SessionContext ctx, URI uri) { if (knownConnectors.containsKey(uri.getScheme())) { return new RemoteConnectorDescriptor(knownConnectors, uri); }