hudson.plugins.mercurial.browser
Class FishEye

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
      extended by hudson.scm.RepositoryBrowser<MercurialChangeSet>
          extended by hudson.plugins.mercurial.browser.HgBrowser
              extended by hudson.plugins.mercurial.browser.FishEye
All Implemented Interfaces:
ExtensionPoint, Describable<RepositoryBrowser<?>>, java.io.Serializable

public class FishEye
extends HgBrowser

Mercurial web interface served using FishEye.

See Also:
Serialized Form

Nested Class Summary
static class FishEye.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
private static long serialVersionUID
           
 
Fields inherited from class hudson.plugins.mercurial.browser.HgBrowser
current
 
Constructor Summary
FishEye(java.lang.String url)
           
 
Method Summary
 java.net.URL getChangeSetLink(MercurialChangeSet changeSet)
          
 java.net.URL getDiffLink(java.lang.String path)
          Returns a link to a diff for a file.
 java.net.URL getFileLink(java.lang.String path)
          Returns a link to a specific revision of a file.
 
Methods inherited from class hudson.plugins.mercurial.browser.HgBrowser
checkCurrentIsNotNull, getUrl, 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

FishEye

@DataBoundConstructor
public FishEye(java.lang.String url)
        throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException
Method Detail

getChangeSetLink

public java.net.URL getChangeSetLink(MercurialChangeSet changeSet)
                              throws java.io.IOException

Overrides:
getChangeSetLink in class HgBrowser
Throws:
java.io.IOException

getFileLink

public java.net.URL getFileLink(java.lang.String path)
                         throws java.net.MalformedURLException
Returns a link to a specific revision of a file. Throws IllegalStateException when this method is called before at least one call to getChangeSetLink(MercurialChangeSet).

Overrides:
getFileLink in class HgBrowser
Parameters:
path - to a file.
Returns:
URL pointing to a specific revision of the file.
Throws:
java.net.MalformedURLException

getDiffLink

public java.net.URL getDiffLink(java.lang.String path)
                         throws java.net.MalformedURLException
Returns a link to a diff for a file. Throws IllegalStateException when this method is called before at least one call to getChangeSetLink(MercurialChangeSet).

Overrides:
getDiffLink in class HgBrowser
Parameters:
path - to a file.
Returns:
URL pointing to a specific revision of the file.
Throws:
java.net.MalformedURLException


Copyright © 2010. All Rights Reserved.