KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > core > connection > PServerConnectionMethod


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  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.internal.ccvs.core.connection;
12  
13 import org.eclipse.team.internal.ccvs.core.ICVSRepositoryLocation;
14 import org.eclipse.team.internal.ccvs.core.IConnectionMethod;
15 import org.eclipse.team.internal.ccvs.core.IServerConnection;
16 public class PServerConnectionMethod implements IConnectionMethod {
17     /**
18      * @see IConnectionMethod#createConnection(ICVSRepositoryLocation, String)
19      */

20     public IServerConnection createConnection(ICVSRepositoryLocation location, String JavaDoc password) {
21         if(password==null){
22             password=""; //$NON-NLS-1$
23
}
24         return new PServerConnection(location, password);
25     }
26     /**
27      * @see IConnectionMethod#getName()
28      */

29     public String JavaDoc getName() {
30         return "pserver";//$NON-NLS-1$
31
}
32     
33     /**
34      * @see org.eclipse.team.internal.ccvs.core.IConnectionMethod#disconnect(org.eclipse.team.internal.ccvs.core.ICVSRepositoryLocation)
35      */

36     public void disconnect(ICVSRepositoryLocation location) {
37     }
38 }
39
Popular Tags