allensoft.javacvs.client
Class RepositoryLocation

java.lang.Object
  |
  +--allensoft.javacvs.client.RepositoryLocation

public class RepositoryLocation
extends java.lang.Object

Defines the location of a repository.


Constructor Summary
RepositoryLocation(CVSConnectionMethod method, java.lang.String sUserName, java.lang.String sHostName, java.lang.String sRepositoryPath)
          Creates a new CVSRepositoryLocation with the specified settings.
RepositoryLocation(java.lang.String sLocation)
          Creates anew CVSRepositoryLocation object using sLocation as the location.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 CVSConnectionMethod getConnectionMethod()
          Gets the connection method for this location.
 java.lang.String getHostName()
          Gets the host name.
 java.lang.String getRepositoryPath()
          Gets the path to the repository.
 java.lang.String getUserName()
          Gets the user name.
 int hashCode()
           
 java.lang.String toString()
          Converts this location to a string of the form:
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositoryLocation

public RepositoryLocation(java.lang.String sLocation)
                   throws InvalidRepositoryLocationException
Creates anew CVSRepositoryLocation object using sLocation as the location.
Parameters:
sLocation - the location of the repository. This is of the form:

:method:user@host:/path/to/repository

RepositoryLocation

public RepositoryLocation(CVSConnectionMethod method,
                          java.lang.String sUserName,
                          java.lang.String sHostName,
                          java.lang.String sRepositoryPath)
                   throws InvalidRepositoryLocationException
Creates a new CVSRepositoryLocation with the specified settings.
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getConnectionMethod

public CVSConnectionMethod getConnectionMethod()
Gets the connection method for this location.

getUserName

public java.lang.String getUserName()
Gets the user name.

getHostName

public java.lang.String getHostName()
Gets the host name.

getRepositoryPath

public java.lang.String getRepositoryPath()
Gets the path to the repository.

toString

public java.lang.String toString()
Converts this location to a string of the form:

:method:user@host:/path/to/repository
Overrides:
toString in class java.lang.Object