KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > ssh2 > CVSSSH2Method


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * Atsuhiko Yamanaka, JCraft,Inc. - initial API and implementation.
10  * IBM Corporation - removed preference for enabling SSH2
11  *******************************************************************************/

12 package org.eclipse.team.internal.ccvs.ssh2;
13
14 import org.eclipse.team.internal.ccvs.core.*;
15
16 /**
17  * SSH2 will hijack the 'extssh' method and use the SSH2 protocol instead
18  * of SSH1. If the server doesn't support SSH2, the server connection method
19  * will try connecting with SSH1.
20  *
21  * @since 3.0
22  */

23 public class CVSSSH2Method implements IConnectionMethod {
24     
25     public String JavaDoc getName() {
26         return "extssh"; //$NON-NLS-1$
27
}
28     
29     public IServerConnection createConnection(ICVSRepositoryLocation root, String JavaDoc password) {
30         return new CVSSSH2ServerConnection(root, password);
31     }
32     
33     public void disconnect(ICVSRepositoryLocation location) {
34     }
35 }
36
Popular Tags