Hello Dev-list,

I have a startup listener in geoserver and from this class I publish layers 
through the use of the catalog & catalog builder like this:

LocalWorkspaceCatalog catalog = (LocalWorkspaceCatalog) 
GeoServerExtensions.bean("catalog");

CatalogBuilder builder = new CatalogBuilder(catalog);
CoverageStoreInfo store = catalog.getCoverageStoreByName(name);

 builder.setStore(store)

for(String coverageName: coverages){
CoverageInfo ci = builder.buildCoverage(coverageName);
layerInfo layer = builder.buildLayer(ci);
layer.setResource(ci);
catalog.add(ci);
catalog.add(layer);
}

Is this method of publishing supported? Or are the only ways of publishing 
through the rest api and web interface?

-Sylvia

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to