hudson.plugins.mercurial.browser
Class HgBrowser
java.lang.Object
hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
hudson.scm.RepositoryBrowser<MercurialChangeSet>
hudson.plugins.mercurial.browser.HgBrowser
- All Implemented Interfaces:
- ExtensionPoint, Describable<RepositoryBrowser<?>>, java.io.Serializable
- Direct Known Subclasses:
- BitBucket, FishEye, GoogleCode, HgWeb, KilnHG
public class HgBrowser
- extends 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
|
Constructor Summary |
HgBrowser(java.lang.String url)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
current
transient MercurialChangeSet current
url
private final java.net.URL url
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
HgBrowser
HgBrowser(java.lang.String url)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
getChangeSetLink
public java.net.URL getChangeSetLink(MercurialChangeSet changeset)
throws java.io.IOException
-
- Specified by:
getChangeSetLink in class RepositoryBrowser<MercurialChangeSet>
- 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.
- 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.
- Parameters:
path - to a file.
- Returns:
- URL pointing to a specific revision of the file.
- Throws:
java.net.MalformedURLException
checkCurrentIsNotNull
void checkCurrentIsNotNull()
- Throws an
IllegalStateException if current is null. This is used in subclasses.
- Throws:
java.lang.IllegalStateException - if current is null.
getUrl
public java.net.URL getUrl()
readResolve
public java.lang.Object readResolve()
Copyright © 2010. All Rights Reserved.