resourceCatalog.setDefaultWorkspace(ws);
return ws;
}
public GeoServerInfo createDefaultGeoServer() {
GeoServerInfo geoserver;
geoserver = this.serviceCatalog.getFactory().createGlobal();
geoserver.setContact(this.serviceCatalog.getFactory().createContact());
geoserver.setNumDecimals(8);
geoserver.setVerbose(false);
geoserver.setVerboseExceptions(false);
// jai
JAIInfo jai = serviceCatalog.getFactory().createJAI();
jai.setMemoryCapacity((Double) 0.5);
jai.setMemoryThreshold((Double) 0.75);
jai.setTileThreads((Integer) 5);
jai.setTilePriority((Integer) 5);
jai.setImageIOCache((Boolean) false);
jai.setJpegAcceleration((Boolean) false);
jai.setPngAcceleration((Boolean) false);
jai.setRecycling((Boolean) false);
jai.setAllowNativeMosaic(false);
geoserver.setJAI(jai);
serviceCatalog.setGlobal(geoserver);
return geoserver;
}