@ExportedBean public abstract class RepositoryBrowser<E extends ChangeLogSet.Entry> extends AbstractDescribableImpl<RepositoryBrowser<?>> implements ExtensionPoint, Serializable
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 with SCM
.
To have Hudson recognize RepositoryBrowser
, put Extension
on your Descriptor
.
RepositoryBrowsers
,
Serialized FormExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
RepositoryBrowser() |
Modifier and Type | Method and Description |
---|---|
static DescriptorExtensionList<RepositoryBrowser<?>,Descriptor<RepositoryBrowser<?>>> |
all()
Returns all the registered
RepositoryBrowser 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.
|
getDescriptor
public abstract URL getChangeSetLink(E changeSet) throws IOException
IOException
protected static String trimHeadSlash(String s)
protected static URL normalizeToEndWithSlash(URL url)
An attention is paid to preserve the query parameters in URL if any.
public static DescriptorExtensionList<RepositoryBrowser<?>,Descriptor<RepositoryBrowser<?>>> all()
RepositoryBrowser
descriptors.Copyright © 2004–2021. All rights reserved.