Configuring service providers through XML file |
Service providers provide functions for service components, which are the sources of the service logic processing for the service components. SuperMap iServer allows users to customize service providers (iServer configuration file). The configuration of the service provider includes workspace path, cache path, cache access path, etc. Different service provider types have different configuration items.
The service provider is configured on the node <provider/>. Table 1 Implementation and configuration of service provider shows the basic type, the implementation class, the configuration class, etc.
For service providers that use local workspace as data source, iServer also supports to preset workspace paths in environment variables and in system configuration files, besides the way that you can set the whole or relative data path directly in the XML configuration file.
If you have preset the data path, you can directly read the workspace data from the path when configuring the service provider through XML without having to write the full data path.
The specific operation is as follows:
The specific operation is as follows:
Note: If you set the workspace path in both of these ways, iServer preferentially uses the data set in the environment variable.
Table 1 Implementation and configuration class of service provider
Service provider type | Service provider implementation class (com.supermap.services.providers.*) |
Service Provider configuration class (com.supermap.services.providers.*) |
|
Data | UGCDataProvider | UGCDataProviderSetting | |
WFSDataProvider | WFSDataProviderSetting | ||
RestDataProvider | RestDataProviderSetting | ||
ArcGISRestDataProvider | ArcGISRestDataProviderSetting | ||
AggregationDataProvider | AggregationDataProviderSetting | ||
GeoPackage data service provider | GeoPackageDataProvider | GeoPackageDataProviderSetting | |
ShapeFileMapProvider | ShapeFileMapProviderSetting | ||
PostgisMapProvider | PostgisMapProviderSetting | ||
HBase map service provider | HBaseMapProvider | HBaseMapProviderSetting | |
Map | UGCMapProvider | UGCMapProviderSetting | |
RestMapProvider | RestMapProviderSetting | ||
CloudMapProvider | CloudMapProviderSetting | ||
FastDFSTileProvider | FastDFSTileProviderSetting | ||
GDPMapProvider | GDPMapProviderSetting | ||
MongoDBTileProvider | MongoDBTileProviderSetting | ||
SMTilesMapProvider | SMTilesMapProviderSetting | ||
SVTilesMapProvider | SVTilesMapProviderSetting | ||
UGCV5TileProvider | UGCV5TileProviderSetting | ||
WMSMapProvider | WMSMapProviderSetting | ||
WMTSMapProvider | WMTSMapProviderSetting | ||
RestMapProvider | RestMapProviderSetting | ||
BingMapsMapProvider | BingMapsMapProviderSetting | ||
GoogleMapsMapProvider | GoogleMapsMapProviderSetting | ||
TiandituMapProvider | TiandituMapProviderSetting | ||
ArcGISRestMapProvider | ArcGISRestMapProviderSetting | ||
TPK map service provider | TPKMapProvider | TPKMapProviderSetting | |
AggregationMapProvider | AggregationMapProviderSetting | ||
BaiduMapProvider | BaiduMapProviderSetting | ||
OpenStreetMapProvider | OpenStreetMapProviderSetting | ||
GeoPackage map service provider | GeoPackageMapProvider | GeoPackageMapProviderSetting | |
ShapeFileMapProvider | ShapeFileMapProviderSetting | ||
PostgisMapProvider | PostgisMapProviderSetting | ||
HBase map service provider | HBaseMapProvider | HBaseMapProviderSetting | |
3D | UGCRealspaceProvider | UGCRealspaceProviderSetting | |
RestRealspaceProvider | RestRealspaceProviderSetting | ||
MongoDBRealspaceProvider | MongoDBRealspaceProviderSetting | ||
Spatial Analysis | UGCSpatialAnalystProvider | UGCSpatialAnalystProviderSetting | |
RestSpatialAnalystProvider | RestSpatialAnalystProviderSetting | ||
Transportation Analysis | UGCTransportationAnalystProvider | TransportationAnalystSetting | |
RestTransportationAnalystProvider | RestTransportationAnalystProviderSetting | ||
Traffic Transfer Analysis | UGCTrafficTransferAnalystProvider | TrafficTransferAnalystSetting | |
RestTrafficTransferAnalystProvider | RestTrafficTransferAnalystProviderSetting | ||
3D Network Analysis | UGCNetworkAnalyst3DProvider | NetworkAnalyst3DSetting |