Package hudson.scm
Class RepositoryBrowser<E extends ChangeLogSet.Entry>
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<E>
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
@ExportedBean public abstract class RepositoryBrowser<E extends ChangeLogSet.Entry> extends AbstractDescribableImpl<RepositoryBrowser<?>> implements ExtensionPoint, Serializable
Connects Hudson to repository browsers like ViewCVS or FishEye, so that Hudson can generate links to them.RepositoryBrowser
instance is normally created as a result of job configuration, and stores immutable configuration information (such as the URL of the FishEye site).RepositoryBrowser
is persisted withSCM
.To have Hudson recognize
RepositoryBrowser
, putExtension
on yourDescriptor
.- Since:
- 1.89
- Author:
- Kohsuke Kawaguchi
- See Also:
RepositoryBrowsers
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description RepositoryBrowser()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static DescriptorExtensionList<RepositoryBrowser<?>,Descriptor<RepositoryBrowser<?>>>
all()
Returns all the registeredRepositoryBrowser
descriptors.abstract URL
getChangeSetLink(E changeSet)
Determines the link to the given change set.protected static URL
normalizeToEndWithSlash(URL url)
Normalize the URL so that it ends with '/'.protected static String
trimHeadSlash(String s)
If the given string starts with '/', return a string that removes it.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
getChangeSetLink
public abstract URL getChangeSetLink(E changeSet) throws IOException
Determines the link to the given change set.- Returns:
- null if this repository browser doesn't have any meaningful URL for a change set (for example, ViewCVS doesn't have any page for a change set, whereas FishEye does.)
- Throws:
IOException
-
trimHeadSlash
protected static String trimHeadSlash(String s)
If the given string starts with '/', return a string that removes it.
-
normalizeToEndWithSlash
protected static URL normalizeToEndWithSlash(URL url)
Normalize the URL so that it ends with '/'.An attention is paid to preserve the query parameters in URL if any.
-
all
public static DescriptorExtensionList<RepositoryBrowser<?>,Descriptor<RepositoryBrowser<?>>> all()
Returns all the registeredRepositoryBrowser
descriptors.
-
-