|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--allensoft.javacvs.client.DefaultConnectionManager
Creates connections to repository locations.
Inner Class Summary | |
protected static interface |
DefaultConnectionManager.ConnectionInstantiator
Interface used by createLoginConnection method to instantiate a connection with some login details. |
Constructor Summary | |
DefaultConnectionManager()
Creates a new DefaultConnectionManager. |
Method Summary | |
CVSConnection |
createConnection(CVSClient client,
RepositoryLocation location,
LoginManager loginManager)
Creates a connection for the specified repository location. |
protected CVSConnection |
createExtConnection(CVSClient client,
RepositoryLocation location,
LoginManager loginManager)
|
protected CVSConnection |
createExternalRSHConnection(CVSClient client,
RepositoryLocation location,
LoginManager loginManager)
|
protected CVSConnection |
createExternalSSHConnection(CVSClient client,
RepositoryLocation location,
LoginManager loginManager)
|
protected CVSConnection |
createInternalSSHConnection(CVSClient client,
RepositoryLocation location,
LoginManager loginManager)
|
protected CVSConnection |
createLocalConnection(CVSClient client,
RepositoryLocation location)
|
protected CVSConnection |
createLoginConnection(CVSClient client,
RepositoryLocation location,
LoginManager loginManager,
DefaultConnectionManager.ConnectionInstantiator instantiator)
Creates a connection to the supplied location. |
protected CVSConnection |
createPServerConnection(CVSClient client,
RepositoryLocation location,
LoginManager loginManager)
|
protected java.lang.String |
getExtCommand(java.lang.String sPattern,
RepositoryLocation location)
Gets the external command that should be used for the supplied repository location given the command pattern. |
java.lang.String |
getExternalRSHCommand(RepositoryLocation location)
|
java.lang.String |
getExternalRSHCommandPattern()
|
java.lang.String |
getExternalSSHCommand(RepositoryLocation location)
|
java.lang.String |
getExternalSSHCommandPattern()
|
java.lang.String |
getLocalServerCommand()
Gets the command that is used to run the local server. |
protected RepositoryDetails |
getRepositoryDetailsForExtConnection(RepositoryLocation location)
Gets the repository details for the supplied location. |
void |
setExternalRSHCommandPattern(java.lang.String s)
|
void |
setExternalSSHCommandPattern(java.lang.String s)
|
void |
setLocalServerCommand(java.lang.String sCommand)
Sets the command that is used to run the local server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultConnectionManager()
Method Detail |
public CVSConnection createConnection(CVSClient client, RepositoryLocation location, LoginManager loginManager) throws CVSConnectionException
createConnection
in interface CVSConnectionManager
protected CVSConnection createLocalConnection(CVSClient client, RepositoryLocation location) throws CVSConnectionException
protected CVSConnection createExtConnection(CVSClient client, RepositoryLocation location, LoginManager loginManager) throws CVSConnectionException
protected CVSConnection createInternalSSHConnection(CVSClient client, RepositoryLocation location, LoginManager loginManager) throws CVSConnectionException
protected CVSConnection createExternalSSHConnection(CVSClient client, RepositoryLocation location, LoginManager loginManager) throws CVSConnectionException
protected CVSConnection createExternalRSHConnection(CVSClient client, RepositoryLocation location, LoginManager loginManager) throws CVSConnectionException
protected RepositoryDetails getRepositoryDetailsForExtConnection(RepositoryLocation location) throws CVSConnectionException
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.protected CVSConnection createPServerConnection(CVSClient client, RepositoryLocation location, LoginManager loginManager) throws CVSConnectionException
protected CVSConnection createLoginConnection(CVSClient client, RepositoryLocation location, LoginManager loginManager, DefaultConnectionManager.ConnectionInstantiator instantiator) throws CVSConnectionException
public java.lang.String getLocalServerCommand()
public void setLocalServerCommand(java.lang.String sCommand)
protected java.lang.String getExtCommand(java.lang.String sPattern, RepositoryLocation location)
public java.lang.String getExternalSSHCommand(RepositoryLocation location)
public java.lang.String getExternalSSHCommandPattern()
public void setExternalSSHCommandPattern(java.lang.String s)
public java.lang.String getExternalRSHCommand(RepositoryLocation location)
public java.lang.String getExternalRSHCommandPattern()
public void setExternalRSHCommandPattern(java.lang.String s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |