本文整理了Java中org.geoserver.config.GeoServer.getFacade()
方法的一些代码示例,展示了GeoServer.getFacade()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeoServer.getFacade()
方法的具体详情如下:
包路径:org.geoserver.config.GeoServer
类名称:GeoServer
方法名:getFacade
[英]The configuration data access facade object.
[中]配置数据访问外观对象。
代码示例来源:origin: org.geoserver.community/gs-jms-geoserver
/**
* Get all services info objects of a GeoServer instance, including the global service and
* workspace services.
*/
private static List<ServiceInfo> getAllServices(GeoServer geoServer) {
List<ServiceInfo> allServices = new ArrayList<>();
// get global services
allServices.addAll(geoServer.getServices());
// get services per workspace
List<WorkspaceInfo> workspaces = geoServer.getCatalog().getWorkspaces();
for (WorkspaceInfo workspace : workspaces) {
// get the services of this workspace
allServices.addAll(geoServer.getFacade().getServices(workspace));
}
return allServices;
}
代码示例来源:origin: org.geoserver/gs-gwc
WMTSInfo globalServiceInfo = geoServer.getFacade().getService(WMTSInfo.class);
globalServiceInfo.setEnabled(config.isWMTSEnabled());
geoServer.save(globalServiceInfo);
内容来源于网络,如有侵权,请联系作者删除!