hudson.scm.browsers
Class WebSVN2

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.scm.RepositoryBrowser<?>>
      extended by hudson.scm.RepositoryBrowser<SubversionChangeLogSet.LogEntry>
          extended by hudson.scm.SubversionRepositoryBrowser
              extended by hudson.scm.browsers.WebSVN2
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, Serializable

public class WebSVN2
extends SubversionRepositoryBrowser

SubversionRepositoryBrowser that produces links to http://www.websvn.info/ for SVN compatible with Version 2.3.1 of WebSVN.

Author:
Andreas Mandel, based on ViewVC plugin by Mike Salnikov, based on Polarion plug-in by Jonny Wray, Nikita Levyankov, changes were moved from WebSVN2 plugin
See Also:
Serialized Form

Nested Class Summary
static class WebSVN2.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 URL url
           
 
Constructor Summary
WebSVN2(URL url)
           
 
Method Summary
 boolean equals(Object o)
           
 URL getChangeSetLink(SubversionChangeLogSet.LogEntry logEntry)
           
 URL getDiffLink(SubversionChangeLogSet.Path path)
          Determines the link to the diff between the version in the specified revision of SubversionChangeLogSet.Path to its previous version.
 URL getFileLink(SubversionChangeLogSet.Path path)
          Determines the link to a single file under Subversion.
 int hashCode()
           
 
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

public final URL url
Constructor Detail

WebSVN2

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

getDiffLink

public URL getDiffLink(SubversionChangeLogSet.Path path)
                throws IOException
Description copied from class: SubversionRepositoryBrowser
Determines the link to the diff between the version in the specified revision of SubversionChangeLogSet.Path to its previous version.

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

getFileLink

public URL getFileLink(SubversionChangeLogSet.Path path)
                throws IOException
Description copied from class: SubversionRepositoryBrowser
Determines the link to a single file under Subversion. This page should display all the past revisions of this file, etc.

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

getChangeSetLink

public URL getChangeSetLink(SubversionChangeLogSet.LogEntry logEntry)
                     throws IOException
Specified by:
getChangeSetLink in class hudson.scm.RepositoryBrowser<SubversionChangeLogSet.LogEntry>
Throws:
IOException

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2013 Hudson. All Rights Reserved.