Restlet-based extension |
SuperMap iServer not only provides REST services and publishes a large number of GIS functionalities as resource, but also provides a suit of extension mechanism, which can help users add their own applications to SuperMap iServer, implement custom resources and publish domain services.
Currently, SuperMap iServer has two methods to provide REST service, namely the mechanism based on Restlet and JAX-RS. When performing the extension, you should adopt the different extension methods according to the implementation method of functional modules.
The modules that implement REST resource based on the Restlet mechanism have: map module, data module, transporation analyst module and 3D module. SuperMap iServer provides the following extensions:
Extending resource by using REST SDK and inheriting the abstract resource class provided in SDK.
Extending the encoder. The resource on the server can be published in new output formats.
Extending the decoder. The server can recgonize new parameter passing formats.
Extending HTTP Handler. The processing procedure of the HTTP request on the server can be customized.
Extending security. Users can configure their own security mechanism to the server.
Below shows how an HTTP request sent by a client to access SuperMap iServer REST service is processed on SuperMap iServer. In green is places where the extension can be performed.
Encoder extension, decoder extension, and HTTP request extension can be performed for original resources on the server and those resources formed by extending through REST SDK or publishing domain components.
Follow the links below to know how to extend REST services.
Extending a Security Mechanism