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

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

public class CatalogManager
extends java.lang.Object

Manages the access to a catalogs information, and is able to download the scripts from it.

Author:
domi
See Also:
CatalogInfo

Constructor Summary
CatalogManager(CatalogInfo info)
           
 
Method Summary
 java.lang.String downloadScript(java.lang.String scriptName, java.lang.String id)
          Get the requested script from the catalog location.
 Catalog loadCatalog()
          Returns the newest catalog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogManager

public CatalogManager(CatalogInfo info)
Method Detail

downloadScript

public java.lang.String downloadScript(java.lang.String scriptName,
                                       java.lang.String id)
Get the requested script from the catalog location.

Parameters:
scriptName - the name of the script. Will be used in the url.
Returns:
See Also:
CatalogInfo.catalogLocation

loadCatalog

public Catalog loadCatalog()
Returns the newest catalog.

Returns:
the catalog - never null, even if download failed.


Copyright © 2010. All Rights Reserved.