This section deals with the creation of new Hervices handlers that allow to process OGC web service requests and are easily exposed via the
Service Handlers are
that at least implement the
ServiceHandlerInterface. For a Service
Handler to be fully accessible it is also necessary to implement either or both
For general information about Plugins/Components please refer to the
Each service handler must provide the following:
servicethe handler will contribute to
servicethe handler is capable of responding to
servicethe handler is able to respond
handlemethod that takes a
A service handler can provide an
index, which allows the sorting of
the handlers in a “GetCapabilities” response.
The following is an example handler for the “GetCapabilities” handler of the
WES (Web Example Service):
from eoxserver.core import Component, implements, ExtensionPoint from eoxserver.services.ows.interfaces import ( ServiceHandlerInterface, GetServiceHandlerInterface, PostServiceHandlerInterface ) class WESGetCapabilitiesHandler(Component): implements(ServiceHandlerInterface) implements(GetServiceHandlerInterface) implements(PostServiceHandlerInterface) service = "WES" request = "GetCapabilities" versions = ["1.0"] def handle(self, request): ...
A word about versions: in EOxServer they are represented by the
Version class. It follows OGC
conventions on treating versions. So for example the versions “1.0” and
“1.0.1” are considered equal. For our example this means that our handler
will be able to respond to any request with a version “1.0.x”.