/** * Create a new Soaplab scavenger, the base parameter should be the base URL * of the Soaplab service, i.e. if your AnalysisFactory is at * http://foo.bar/soap/AnalysisFactory the parameter should be * http://foo.bar/soap/ */ public SoaplabScavenger(String theBase) throws ScavengerCreationException { // Making sure there is / at the end of theBase super("Soaplab @ " + (theBase.endsWith("/") ? theBase : theBase + "/")); // Of course we have to do this again since we are not allowed to do // such stuff before super() theBase=theBase.trim(); base = theBase.endsWith("/") ? theBase : theBase + "/"; // Get the categories for this installation try { List<SoaplabCategory> categories=SoaplabScavengerAgent.load(base); populateTree(categories); } catch (MissingSoaplabException e) { logger.warn("Unable to load categories for SoaplabScavenger",e); throw new ScavengerCreationException(e.getMessage()); } }