wmslayerinfo.java
来自「联合国农粮署牵头开发的geonetwork源代码最新版」· Java 代码 · 共 41 行
JAVA
41 行
package org.wfp.vam.intermap.services.map;import org.jdom.*;import jeeves.interfaces.*;import jeeves.server.*;import jeeves.server.context.*;import org.wfp.vam.intermap.Constants;import org.wfp.vam.intermap.kernel.map.mapServices.wms.WmsGetCapClient;//=============================================================================/** main.result service. shows search results */public class WmsLayerInfo implements Service{ public void init(String appPath, ServiceConfig config) throws Exception {} //-------------------------------------------------------------------------- //--- //--- Service //--- //-------------------------------------------------------------------------- public Element exec(Element params, ServiceContext context) throws Exception { String serverUrl = params.getChildText(Constants.MAP_SERVER_URL); String serviceName = params.getChildText("name"); return new Element("response") .addContent(WmsGetCapClient.getCapabilities(serverUrl)) .addContent(new Element("serviceName").setText(serviceName)); } }//=============================================================================
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?