net.sf.statcvs.output
Class CvswebIntegration

java.lang.Object
  extended bynet.sf.statcvs.output.CvswebIntegration
All Implemented Interfaces:
WebRepositoryIntegration

public class CvswebIntegration
extends java.lang.Object
implements WebRepositoryIntegration

Integration of cvsweb

Version:
$Id: CvswebIntegration.java,v 1.6 2003/06/02 23:18:57 cyganiak Exp $
Author:
Richard Cyganiak

Constructor Summary
CvswebIntegration(java.lang.String baseURL)
           
 
Method Summary
 java.lang.String getDiffUrl(CvsRevision oldRevision, CvsRevision newRevision)
          Returns a URL to a diff in the web repository browser.
 java.lang.String getDirectoryUrl(Directory directory)
          Returns a URL to a directory in the web repository browser
 java.lang.String getFileHistoryUrl(CvsFile file)
          Returns a URL to a file in the web repository browser.
 java.lang.String getFileViewUrl(CvsFile file)
          Returns a URL to a file in the web repository browser.
 java.lang.String getFileViewUrl(CvsRevision revision)
          Returns a URL to a file in the web repository browser.
 java.lang.String getName()
          Returns the name of the repository browser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CvswebIntegration

public CvswebIntegration(java.lang.String baseURL)
Parameters:
baseURL - base URL of the cvsweb installation
Method Detail

getName

public java.lang.String getName()
Description copied from interface: WebRepositoryIntegration
Returns the name of the repository browser

Specified by:
getName in interface WebRepositoryIntegration
Returns:
the name of the repository browser
See Also:
WebRepositoryIntegration.getName()

getDirectoryUrl

public java.lang.String getDirectoryUrl(Directory directory)
Description copied from interface: WebRepositoryIntegration
Returns a URL to a directory in the web repository browser

Specified by:
getDirectoryUrl in interface WebRepositoryIntegration
Parameters:
directory - the directory
Returns:
a URL to the directory in the web repository browser
See Also:
WebRepositoryIntegration.getDirectoryUrl(net.sf.statcvs.model.Directory)

getFileHistoryUrl

public java.lang.String getFileHistoryUrl(CvsFile file)
Description copied from interface: WebRepositoryIntegration
Returns a URL to a file in the web repository browser. The URL points to a history of all revisions of the file.

Specified by:
getFileHistoryUrl in interface WebRepositoryIntegration
Parameters:
file - the file
Returns:
a URL to the file in the web repository browser
See Also:
WebRepositoryIntegration.getFileHistoryUrl(net.sf.statcvs.model.CvsFile)

getFileViewUrl

public java.lang.String getFileViewUrl(CvsFile file)
Description copied from interface: WebRepositoryIntegration
Returns a URL to a file in the web repository browser. The URL points to a representation of the file's current contents.

Specified by:
getFileViewUrl in interface WebRepositoryIntegration
Parameters:
file - the file
Returns:
a URL to the file in the web repository browser
See Also:
WebRepositoryIntegration.getFileViewUrl(net.sf.statcvs.model.CvsFile)

getFileViewUrl

public java.lang.String getFileViewUrl(CvsRevision revision)
Description copied from interface: WebRepositoryIntegration
Returns a URL to a file in the web repository browser. The URL points to a representation of the specific revision given as a parameter.

Specified by:
getFileViewUrl in interface WebRepositoryIntegration
Parameters:
revision - the revision
Returns:
a URL to the revision in the web repository browser
See Also:
WebRepositoryIntegration.getFileViewUrl(net.sf.statcvs.model.CvsFile)

getDiffUrl

public java.lang.String getDiffUrl(CvsRevision oldRevision,
                                   CvsRevision newRevision)
Description copied from interface: WebRepositoryIntegration
Returns a URL to a diff in the web repository browser. Both revisions must belong to the same CvsFile.

Specified by:
getDiffUrl in interface WebRepositoryIntegration
Parameters:
oldRevision - the old revision
newRevision - the new revision
Returns:
a URL to a diff
See Also:
WebRepositoryIntegration.getDiffUrl(net.sf.statcvs.model.CvsRevision, net.sf.statcvs.model.CvsRevision)