hudson.plugins.perforce.browsers
Class P4Web
java.lang.Object
hudson.scm.RepositoryBrowser<PerforceChangeLogEntry>
hudson.plugins.perforce.PerforceRepositoryBrowser
hudson.plugins.perforce.browsers.P4Web
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, java.io.Serializable
public class P4Web
- extends PerforceRepositoryBrowser
RepositoryBrowser for Perforce's P4Web.
- Author:
- Mike Wille
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
|
Constructor Summary |
P4Web(java.net.URL url)
|
|
Method Summary |
java.net.URL |
getChangeSetLink(PerforceChangeLogEntry changeSet)
P4 Web doesn't have a pretty view for changelists. |
java.net.URL |
getDiffLink(com.tek42.perforce.model.Changelist.FileEntry file)
Determines the link to the diff between the version. |
java.net.URL |
getFileLink(com.tek42.perforce.model.Changelist.FileEntry file)
Determines the link to a single file under Perforce. |
java.net.URL |
getURL()
|
| 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 |
url
public final java.net.URL url
- The URL of the P4Web server.
This is normally like http://perforce.com:5000/ Normalized to
have '/' at the tail.
p4WebEndShite
public final java.lang.String p4WebEndShite
- See Also:
- Constant Field Values
p4DifEndShite
public final java.lang.String p4DifEndShite
- See Also:
- Constant Field Values
P4Web
@DataBoundConstructor
public P4Web(java.net.URL url)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
getDiffLink
public java.net.URL getDiffLink(com.tek42.perforce.model.Changelist.FileEntry file)
throws java.io.IOException
- Description copied from class:
PerforceRepositoryBrowser
- Determines the link to the diff between the version.
in the
PerforceChangeLogEntry.Change.File to its previous version.
- Specified by:
getDiffLink in class PerforceRepositoryBrowser
- Returns:
- null if the browser doesn't have any URL for diff.
- Throws:
java.io.IOException
getFileLink
public java.net.URL getFileLink(com.tek42.perforce.model.Changelist.FileEntry file)
throws java.io.IOException
- Description copied from class:
PerforceRepositoryBrowser
- Determines the link to a single file under Perforce.
This page should display all the past revisions of this file, etc.
- Specified by:
getFileLink in class PerforceRepositoryBrowser
- Returns:
- null if the browser doesn't have any suitable URL.
- Throws:
java.io.IOException
getChangeSetLink
public java.net.URL getChangeSetLink(PerforceChangeLogEntry changeSet)
throws java.io.IOException
- P4 Web doesn't have a pretty view for changelists. In fact, the one implemented
for hudson is more informative and better looking. Sheesh!
- Specified by:
getChangeSetLink in class hudson.scm.RepositoryBrowser<PerforceChangeLogEntry>
- Throws:
java.io.IOException
getURL
public java.net.URL getURL()
Copyright © 2009. All Rights Reserved.