use of org.geoserver.config.GeoServer in project polymap4-core by Polymap4.
the class GeoServerLoader method loadGeoServer.
protected void loadGeoServer(GeoServerServlet service) {
IMap map = service.map;
log.info("Loading GeoServer...");
GeoServerInfoImpl gsInfo = new GeoServerInfoImpl(geoserver);
gsInfo.setTitle("GeoServer powered by mapzone.io");
gsInfo.setId(simpleName(map.id()) + "-gs");
// XXX alias is added by ArenaConfig when running in mapzone (see comment there)
String proxyBaseUrl = GeoServerPlugin.instance().baseUrl.map(s -> !s.contains(service.alias) ? s + service.alias : s).get();
gsInfo.setProxyBaseUrl(proxyBaseUrl);
log.info("Proxy base URL: " + gsInfo.getProxyBaseUrl());
gsInfo.setVerbose(true);
gsInfo.setVerboseExceptions(true);
geoserver.setGlobal(gsInfo);
log.info("GeoServer: " + gsInfo);
createWMSInfo(map);
createWFSInfo(map);
}
Aggregations