public static RESTDataStoreList build(String response) { Element elem = JDOMBuilder.buildElement(response); return elem == null? null : new RESTDataStoreList(elem); }
/** * Get summary info about all DataStores in a WorkSpace. * * @param workspace The name of the workspace * * @return summary info about Datastores as a {@link RESTDataStoreList} */ public RESTDataStoreList getDatastores(String workspace) { String url = "/rest/workspaces/" + workspace + "/datastores.xml"; if (LOGGER.isDebugEnabled()) { LOGGER.debug("### Retrieving DS list from " + url); } return RESTDataStoreList.build(load(url)); }
List<String> names = dataStores.getNames(); Collections.sort(names); for (String name : names) {
} else { RESTDataStoreList dsList = reader.getDatastores(w); List<String> names = dsList.getNames(); Collections.sort(names); datastores.addAll(names);