/** * Get a complete configuration, with all values * @param configSet config set to ask for * @param name name of the configuration * @param external flag to indicate that it is an external configuration * @return the retrieved config * @throws IOException IO problems */ public PublishedConfiguration retrieveConfiguration(PublishedConfigSet configSet, String name, boolean external) throws IOException { String confURL = getConfigurationURL(external); if (!configSet.contains(name)) { throw new FileNotFoundException("Unknown configuration " + name); } confURL = SliderUtils.appendToURL(confURL, name); WebResource webResource = resource(confURL); return get(webResource, PublishedConfiguration.class); }
/** * Get a complete configuration, with all values * @param configSet config set to ask for * @param name name of the configuration * @param external flag to indicate that it is an external configuration * @return the retrieved config * @throws IOException IO problems */ public PublishedConfiguration retrieveConfiguration(PublishedConfigSet configSet, String name, boolean external) throws IOException { String confURL = getConfigurationURL(external); if (!configSet.contains(name)) { throw new FileNotFoundException("Unknown configuration " + name); } confURL = SliderUtils.appendToURL(confURL, name); WebResource webResource = resource(confURL); return get(webResource, PublishedConfiguration.class); }