hudson.scm.browsers
Class ViewCVS

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.scm.RepositoryBrowser<?>>
      extended by hudson.scm.RepositoryBrowser<CVSChangeLogSet.CVSChangeLog>
          extended by hudson.scm.CVSRepositoryBrowser
              extended by hudson.scm.browsers.ViewCVS
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, Serializable

public final class ViewCVS
extends CVSRepositoryBrowser

RepositoryBrowser for CVS.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Nested Class Summary
static class ViewCVS.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 URL url
          The URL of the top of the site.
 
Constructor Summary
ViewCVS(URL url)
           
 
Method Summary
 URL getChangeSetLink(CVSChangeLogSet.CVSChangeLog changeSet)
          No changeset support in ViewCVS.
 URL getDiffLink(CVSChangeLogSet.File file)
          Determines the link to the diff between the version in the CVSChangeLogSet.File to its previous version.
 URL getFileLink(CVSChangeLogSet.File file)
          Determines the link to a single file under CVS.
 
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

public final URL url
The URL of the top of the site. Normalized to ends with '/', like http://isscvs.cern.ch/cgi-bin/viewcvs-all.cgi/ It may contain a query parameter like ?cvsroot=foobar, so relative URL construction needs to be done with care.

Constructor Detail

ViewCVS

@DataBoundConstructor
public ViewCVS(URL url)
        throws MalformedURLException
Throws:
MalformedURLException
Method Detail

getFileLink

public URL getFileLink(CVSChangeLogSet.File file)
                throws IOException
Description copied from class: CVSRepositoryBrowser
Determines the link to a single file under CVS. This page should display all the past revisions of this file, etc.

Specified by:
getFileLink in class CVSRepositoryBrowser
Returns:
null if the browser doesn't have any suitable URL.
Throws:
IOException

getDiffLink

public URL getDiffLink(CVSChangeLogSet.File file)
                throws IOException
Description copied from class: CVSRepositoryBrowser
Determines the link to the diff between the version in the CVSChangeLogSet.File to its previous version.

Specified by:
getDiffLink in class CVSRepositoryBrowser
Returns:
null if the browser doesn't have any URL for diff.
Throws:
IOException

getChangeSetLink

public URL getChangeSetLink(CVSChangeLogSet.CVSChangeLog changeSet)
                     throws IOException
No changeset support in ViewCVS.

Specified by:
getChangeSetLink in class hudson.scm.RepositoryBrowser<CVSChangeLogSet.CVSChangeLog>
Throws:
IOException


Copyright © 2004-2011 Hudson. All Rights Reserved.