hudson.plugins.mercurial.browser
Class HgBrowser

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.scm.RepositoryBrowser<?>>
      extended by hudson.scm.RepositoryBrowser<MercurialChangeSet>
          extended by hudson.plugins.mercurial.browser.HgBrowser
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, Serializable
Direct Known Subclasses:
BitBucket, FishEye, GoogleCode, HgWeb, KilnHG

public class HgBrowser
extends hudson.scm.RepositoryBrowser<MercurialChangeSet>

Parent class, as there is more than one browser. readResolve() will return the old default HgWeb. Direct calls on this class will always throw UnsupportedOperationExceptions.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Method Summary
 URL getChangeSetLink(MercurialChangeSet changeset)
          
 URL getDiffLink(String path)
          Returns a link to a diff for a file.
 URL getFileLink(String path)
          Returns a link to a specific revision of a file.
 URL getUrl()
           
 Object readResolve()
           
 
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
 

Method Detail

getChangeSetLink

public URL getChangeSetLink(MercurialChangeSet changeset)
                     throws IOException

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

getFileLink

public URL getFileLink(String path)
                throws MalformedURLException
Returns a link to a specific revision of a file.

Parameters:
path - to a file.
Returns:
URL pointing to a specific revision of the file.
Throws:
MalformedURLException

getDiffLink

public URL getDiffLink(String path)
                throws MalformedURLException
Returns a link to a diff for a file.

Parameters:
path - to a file.
Returns:
URL pointing to a specific revision of the file.
Throws:
MalformedURLException

getUrl

public URL getUrl()

readResolve

public Object readResolve()


Copyright © 2004-2011. All Rights Reserved.