|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sf.bloof.scm.cvsplugin.RepositoryLocation
Defines the location of a repository.
| Constructor Summary | |
RepositoryLocation(CvsConnectionMethod aMethod,
java.lang.String aUserName,
java.lang.String aHostName,
java.lang.String aRepositoryPath)
Creates a CVSRepositoryLocation object using the specified parameters |
|
RepositoryLocation(java.lang.String aLocation)
Creates a CVSRepositoryLocation object using sLocation as the location. |
|
| Method Summary | |
static RepositoryLocation |
createValidLocation(CvsConnectionMethod aMethod,
java.lang.String aUserName,
java.lang.String aHostName,
java.lang.String aRepositoryPath)
Creates a RepositoryLocation with asserted valid parameters This method is used internally for local logfile and sample log file access |
CvsConnectionMethod |
getConnectionMethod()
Gets the connection method for this location |
java.lang.String |
getCvsRoot()
Returns the CVSROOT Representation of 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. |
void |
setConnectionMethod(CvsConnectionMethod aMethod)
|
java.lang.String |
toString()
Converts this location to a string of the form: :method:user@host:/path/to/repository |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RepositoryLocation(CvsConnectionMethod aMethod,
java.lang.String aUserName,
java.lang.String aHostName,
java.lang.String aRepositoryPath)
throws InvalidRepositoryLocationException
aMethod - method of connectionaUserName - login of the useraHostName - name of cvs hostaRepositoryPath - path to CVS repository
InvalidRepositoryLocationException - if the specified String does not match
public RepositoryLocation(java.lang.String aLocation)
throws InvalidRepositoryLocationException
aLocation - the location of the repository. This is of the form:
:method:user@host:/path/to/repository
InvalidRepositoryLocationException - if the specified String does not match| Method Detail |
public static RepositoryLocation createValidLocation(CvsConnectionMethod aMethod,
java.lang.String aUserName,
java.lang.String aHostName,
java.lang.String aRepositoryPath)
aMethod - methodaUserName - usernameaHostName - hostnameaRepositoryPath - path
public CvsConnectionMethod getConnectionMethod()
public java.lang.String getCvsRoot()
public java.lang.String getHostName()
public java.lang.String getRepositoryPath()
public java.lang.String getUserName()
public void setConnectionMethod(CvsConnectionMethod aMethod)
aMethod - methodpublic java.lang.String toString()
:method:user@host:/path/to/repository
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||