org.jenkinsci.plugins.darcs.browsers
Class DarcsWeb

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<hudson.scm.RepositoryBrowser<?>>
      extended by hudson.scm.RepositoryBrowser<DarcsChangeSet>
          extended by org.jenkinsci.plugins.darcs.browsers.DarcsRepositoryBrowser
              extended by org.jenkinsci.plugins.darcs.browsers.DarcsWeb
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.scm.RepositoryBrowser<?>>, Serializable

public class DarcsWeb
extends DarcsRepositoryBrowser

Author:
Sven Strittmatter
See Also:
Serialized Form

Nested Class Summary
static class DarcsWeb.DescriptorImpl
          DarcsWeb repository browser description.
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 String repo
           
 URL url
           
 
Constructor Summary
DarcsWeb(URL url, String repo)
           
 
Method Summary
protected  org.jenkinsci.plugins.darcs.browsers.DarcsQueryBuilder createDefaultQuery()
           
protected  org.jenkinsci.plugins.darcs.browsers.DarcsQueryBuilder createDefaultQuery(String action)
           
 URL getChangeSetLink(DarcsChangeSet changeSet)
          Get the change set URI.
 URL getFileDiffLink(DarcsChangeSet changeSet, String file)
          Get file difference link.
 
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

public final URL url

repo

public final String repo
Constructor Detail

DarcsWeb

@DataBoundConstructor
public DarcsWeb(URL url,
                                     String repo)
         throws MalformedURLException
Throws:
MalformedURLException
Method Detail

createDefaultQuery

protected org.jenkinsci.plugins.darcs.browsers.DarcsQueryBuilder createDefaultQuery()

createDefaultQuery

protected org.jenkinsci.plugins.darcs.browsers.DarcsQueryBuilder createDefaultQuery(String action)

getChangeSetLink

public URL getChangeSetLink(DarcsChangeSet changeSet)
                     throws IOException
Get the change set URI. Format: http://localhost/cgi-bin/darcsweb.cgi?r=REPO;a=commit;h=HASH

Specified by:
getChangeSetLink in class hudson.scm.RepositoryBrowser<DarcsChangeSet>
Parameters:
changeSet -
Returns:
Throws:
IOException

getFileDiffLink

public URL getFileDiffLink(DarcsChangeSet changeSet,
                           String file)
                    throws IOException
Get file difference link. Format: http://localhost/cgi-bin/darcsweb.cgi?r=REPO;a=filediff;h=HASH;f=FILE

Specified by:
getFileDiffLink in class DarcsRepositoryBrowser
Parameters:
changeSet -
file -
Returns:
Throws:
IOException


Copyright © 2004-2013 weltraumschaf.de. All Rights Reserved.