org.jenkinsci.plugins.scriptler.share
Class CatalogInfo

java.lang.Object
  extended by org.jenkinsci.plugins.scriptler.share.CatalogInfo

public class CatalogInfo
extends Object


Field Summary
 String catalogLocation
           
 String name
           
 String scriptDetailUrl
           
 String scriptDownloadUrl
           
 
Constructor Summary
CatalogInfo(String name, String catLocation, String scriptDetailUrl, String scriptDownloadUrl)
          Holds the informations used to connect to a catalog location
 
Method Summary
 String getReplacedDetailUrl(String scriptName, String id)
           
 String getReplacedDownloadUrl(String scriptName, String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final String name

catalogLocation

public final String catalogLocation

scriptDownloadUrl

public final String scriptDownloadUrl

scriptDetailUrl

public final String scriptDetailUrl
Constructor Detail

CatalogInfo

public CatalogInfo(String name,
                   String catLocation,
                   String scriptDetailUrl,
                   String scriptDownloadUrl)
Holds the informations used to connect to a catalog location

Parameters:
name - symbolic name of the catalog, must be unique.
catLocation - where to download the catalog file from (including file name, e.g. http://myserver.com/scriptler/my-scriptler-catalog.xml )
scriptDownloadUrl - the url to download a script by its name. Use {0} to mark the position for the file name in the url (e.g. http://myserver.com/scriptler/{0})
Method Detail

getReplacedDownloadUrl

public String getReplacedDownloadUrl(String scriptName,
                                     String id)

getReplacedDetailUrl

public String getReplacedDetailUrl(String scriptName,
                                   String id)


Copyright © 2010-2012. All Rights Reserved.