This section explains How to Create a Simple GeoServer OWS service for GeoServer using the following scenario. The service should supply a capabilities document which advertises a single operation called “sayHello”. The result of a sayHello operation is the simple string “Hello World”.
本节介绍了如何在以下场景中创建一个简单的GeoServer OWS服务。该服务应该提供一个功能文档,为名叫“sayHello”的操作做介绍。sayHello操作的结果是一个简单的字符串“Hello World”。
目录
Implementing a simple OWS service(实现简单的OWS服务)
Setup(安装)
Creating the Plug-in(创建插件)
Trying it Out(尝试)
Bundling with Web Module(与Web模块绑定)
Running from Source(从源码运行)
1. Setup
第一步是创建一个maven工程。
(1)创建一个hello目录。
(2)创建一个pom.xml
(3)创建src/main/java文件夹
2. Creating the Plug-in
A plug-in is a collection of extensions realized as spring beans. In this example the extension point of interest is a HelloWorld POJO (Plain Old Java Object).
一个插件就是一系列的spring bean,实现功能扩展。本例中扩展的兴趣点是一个HelloWorld POJO。
(1)Create a class called HelloWorld
(2)Create an applicationContext.xml declaring the above class as a bean.
3. Trying it Out
https://docs.geoserver.org/stable/en/developer/programming-guide/ows-services/implementing.html