allensoft.javacvs.client.ui.swing
Class BrowserConnectionManager

java.lang.Object
  |
  +--allensoft.javacvs.client.DefaultConnectionManager
        |
        +--allensoft.javacvs.client.ui.swing.BrowserConnectionManager
All Implemented Interfaces:
CVSConnectionManager

public class BrowserConnectionManager
extends DefaultConnectionManager

Connection manger that displays a dialog asking user how to connect to ext repository locations when this has not been defined before.


Inner classes inherited from class allensoft.javacvs.client.DefaultConnectionManager
DefaultConnectionManager.ConnectionInstantiator
 
Constructor Summary
BrowserConnectionManager()
           
 
Method Summary
 CVSConnection createConnection(CVSClient client, RepositoryLocation location, LoginManager loginManager)
          Creates a connection for the specified repository location.
protected  RepositoryDetails getRepositoryDetailsForExtConnection(RepositoryLocation location)
          Gets the repository details for the supplied location.
 void setParentFrame(java.awt.Frame frame)
           
 
Methods inherited from class allensoft.javacvs.client.DefaultConnectionManager
createExtConnection, createExternalRSHConnection, createExternalSSHConnection, createInternalSSHConnection, createLocalConnection, createLoginConnection, createPServerConnection, getExtCommand, getExternalRSHCommand, getExternalRSHCommandPattern, getExternalSSHCommand, getExternalSSHCommandPattern, getLocalServerCommand, setExternalRSHCommandPattern, setExternalSSHCommandPattern, setLocalServerCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrowserConnectionManager

public BrowserConnectionManager()
Method Detail

createConnection

public CVSConnection createConnection(CVSClient client,
                                      RepositoryLocation location,
                                      LoginManager loginManager)
                               throws CVSConnectionException
Description copied from class: DefaultConnectionManager
Creates a connection for the specified repository location. If a login is required then use the supplied login manager to get the login details from the user.
Overrides:
createConnection in class DefaultConnectionManager

setParentFrame

public void setParentFrame(java.awt.Frame frame)

getRepositoryDetailsForExtConnection

protected RepositoryDetails getRepositoryDetailsForExtConnection(RepositoryLocation location)
                                                          throws CVSConnectionException
Description copied from class: DefaultConnectionManager
Gets the repository details for the supplied location. This is required for creating ext and server connections. By default this just return RepositoryDetails.get(location). However, subclasses may like to define a different behaviour. For example, if details have not yet been defined then may be in the case of a GUI interface it would be nice to ask the user to decide how they want to connect.
Overrides:
getRepositoryDetailsForExtConnection in class DefaultConnectionManager
Following copied from class: allensoft.javacvs.client.DefaultConnectionManager
Returns:
null if no details have been created yet or the details of how to connect.