Package hudson.plugins.git.browser
Class GitWeb
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<GitChangeSet>
-
- hudson.plugins.git.browser.GitRepositoryBrowser
-
- hudson.plugins.git.browser.GitWeb
-
- All Implemented Interfaces:
ExtensionPoint,Describable<RepositoryBrowser<?>>,Serializable
public class GitWeb extends GitRepositoryBrowser
Git Browser URLs- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGitWeb.GitWebDescriptor-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLgetChangeSetLink(GitChangeSet changeSet)URLgetDiffLink(GitChangeSet.Path path)Creates a link to the file diff.URLgetFileLink(GitChangeSet.Path path)Creates a link to the file.protected booleangetNormalizeUrl()Determines whether a URL should be normalized Overridden in the rare case where it shouldn't-
Methods inherited from class hudson.plugins.git.browser.GitRepositoryBrowser
encodeURL, getChangeSetLink, getIndexOfPath, getRepoUrl, getUrl, initialChecksAndReturnOk, validateUrl
-
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
GitWeb
@DataBoundConstructor public GitWeb(String repoUrl)
-
-
Method Detail
-
getNormalizeUrl
protected boolean getNormalizeUrl()
Description copied from class:GitRepositoryBrowserDetermines whether a URL should be normalized Overridden in the rare case where it shouldn't- Overrides:
getNormalizeUrlin classGitRepositoryBrowser- Returns:
- True if the URL should be normalized
-
getChangeSetLink
public URL getChangeSetLink(GitChangeSet changeSet) throws IOException
- Specified by:
getChangeSetLinkin classRepositoryBrowser<GitChangeSet>- Throws:
IOException
-
getDiffLink
public URL getDiffLink(GitChangeSet.Path path) throws IOException
Creates a link to the file diff. http://[GitWeb URL]?a=blobdiff;f=[path];fp=[path];h=[dst];hp=[src];hb=[commit];hpb=[parent commit]- Specified by:
getDiffLinkin classGitRepositoryBrowser- Parameters:
path- affected file path- Returns:
- diff link
- Throws:
IOException- on input or output error
-
getFileLink
public URL getFileLink(GitChangeSet.Path path) throws IOException
Creates a link to the file. http://[GitWeb URL]?a=blob;f=[path];h=[dst, or src for deleted files];hb=[commit]- Specified by:
getFileLinkin classGitRepositoryBrowser- Parameters:
path- file- Returns:
- file link
- Throws:
IOException- on input or output error
-
-