hudson
Class Functions.RunUrl

java.lang.Object
  extended by hudson.Functions.RunUrl
Enclosing class:
Functions

public static final class Functions.RunUrl
extends Object

URL decomposed for easier computation of relevant URLs.

The decomposed URL will be of the form:

 aaaaaa/524/bbbbb/cccc
 -head-| N |---rest---
 ----- base -----|
 

The head portion is the part of the URL from the Jenkins object to the first Run subtype. When "next/prev build" is chosen, this part remains intact.

The 524 is the path from Job to Run.

The bbb portion is the path after that till the last Run subtype. The ccc portion is the part after that.


Constructor Summary
Functions.RunUrl(Run run, String head, String base, String rest)
           
 
Method Summary
 String getBaseUrl()
           
 String getNextBuildUrl()
          Returns the same page in the next build.
 String getPreviousBuildUrl()
          Returns the same page in the previous build.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Functions.RunUrl

public Functions.RunUrl(Run run,
                        String head,
                        String base,
                        String rest)
Method Detail

getBaseUrl

public String getBaseUrl()

getNextBuildUrl

public String getNextBuildUrl()
Returns the same page in the next build.


getPreviousBuildUrl

public String getPreviousBuildUrl()
Returns the same page in the previous build.



Copyright © 2004-2013. All Rights Reserved.