org.geoserver.config.GeoServer.getFacade()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(144)

本文整理了Java中org.geoserver.config.GeoServer.getFacade()方法的一些代码示例,展示了GeoServer.getFacade()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeoServer.getFacade()方法的具体详情如下:
包路径:org.geoserver.config.GeoServer
类名称:GeoServer
方法名:getFacade

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);

相关文章