hudson.plugins.git.browser
Class GithubWeb
java.lang.Object
hudson.scm.RepositoryBrowser<GitChangeSet>
hudson.plugins.git.browser.GitRepositoryBrowser
hudson.plugins.git.browser.GithubWeb
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, java.io.Serializable
public class GithubWeb
- extends GitRepositoryBrowser
Git Browser URLs
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Constructor Summary |
GithubWeb(java.lang.String url)
|
| Methods inherited from class hudson.scm.RepositoryBrowser |
all, getDescriptor, normalizeToEndWithSlash, trimHeadSlash |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GithubWeb
@DataBoundConstructor
public GithubWeb(java.lang.String url)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
getUrl
public java.net.URL getUrl()
getChangeSetLink
public java.net.URL getChangeSetLink(GitChangeSet changeSet)
throws java.io.IOException
- Specified by:
getChangeSetLink in class hudson.scm.RepositoryBrowser<GitChangeSet>
- Throws:
java.io.IOException
getDiffLink
public java.net.URL getDiffLink(GitChangeSet.Path path)
throws java.io.IOException
- Creates a link to the file diff.
http://[GitHib URL]/commit/573670a3bb1f3b939e87f1dee3e99b6bfe281fcb#diff-N
- Specified by:
getDiffLink in class GitRepositoryBrowser
- Parameters:
path - affected file path
- Returns:
- diff link
- Throws:
java.io.IOException
getFileLink
public java.net.URL getFileLink(GitChangeSet.Path path)
throws java.io.IOException
- Creates a link to the file.
http://[GitHib URL]/blob/573670a3bb1f3b939e87f1dee3e99b6bfe281fcb/src/main/java/hudson/plugins/git/browser/GithubWeb.java
Github seems to have no URL for deleted files, so just return
a difflink instead.
- Specified by:
getFileLink in class GitRepositoryBrowser
- Parameters:
path - file
- Returns:
- file link
- Throws:
java.io.IOException
Copyright © 2010. All Rights Reserved.