GeoServer Manager
is a library to interact with GeoServer 2.x
. I want to use it. but I didn't find any appropriate documentation for it. Can anyone help me by some tutorial or example?
here is a few examples : geo-solutions examples for geoserver manager
GeoServer-Manager wiki on GitHub: here
For example I want to add a new WFS
layer into a certain workspace
of geoserver. suppose I have a shafefile(.shp) and I want to add it into geoserver by geoserver-manager. How can I do that? here is the initial code:
String RESTURL = "http://localhost:8080/geoserver";
String RESTUSER = "admin";
String RESTPW = "geoserver";
GeoServerRESTReader reader = new GeoServerRESTReader(RESTURL, RESTUSER, RESTPW);
GeoServerRESTPublisher publisher = new GeoServerRESTPublisher(RESTURL, RESTUSER, RESTPW);