org.jvnet.hudson.plugins.scriptler.share
Class CatalogInfo

java.lang.Object
  extended by org.jvnet.hudson.plugins.scriptler.share.CatalogInfo

public class CatalogInfo
extends java.lang.Object


Field Summary
 java.lang.String catalogLocation
           
 java.lang.String name
           
 java.lang.String scriptDetailUrl
           
 java.lang.String scriptDownloadUrl
           
 
Constructor Summary
CatalogInfo(java.lang.String name, java.lang.String catLocation, java.lang.String scriptDetailUrl, java.lang.String scriptDownloadUrl)
          Holds the informations used to connect to a catalog location
 
Method Summary
 java.lang.String getReplacedDetailUrl(java.lang.String scriptName, java.lang.String id)
           
 java.lang.String getReplacedDownloadUrl(java.lang.String scriptName, java.lang.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 java.lang.String name

catalogLocation

public final java.lang.String catalogLocation

scriptDownloadUrl

public final java.lang.String scriptDownloadUrl

scriptDetailUrl

public final java.lang.String scriptDetailUrl
Constructor Detail

CatalogInfo

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

Parameters:
name - symbolic name of the catalog, should 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 java.lang.String getReplacedDownloadUrl(java.lang.String scriptName,
                                               java.lang.String id)

getReplacedDetailUrl

public java.lang.String getReplacedDetailUrl(java.lang.String scriptName,
                                             java.lang.String id)


Copyright © 2010. All Rights Reserved.