com.supermap.services.providers
Class RestAddressMatchProvider
- java.lang.Object
-
- com.supermap.services.providers.RestProviderBase
-
- com.supermap.services.providers.RestAddressMatchProvider
-
- All Implemented Interfaces:
- AddressMatchProvider, Disposable, ProviderContextAware
public class RestAddressMatchProvider extends RestProviderBase implements AddressMatchProvider, Disposable, ProviderContextAware
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.supermap.services.providers.RestProviderBase
RestProviderBase.CacheModel, RestProviderBase.RestRequestException
-
-
Field Summary
-
Fields inherited from class com.supermap.services.providers.RestProviderBase
JAVA_POSTFIX, javaConverter, JSON_POSTFIX, jsonConverter, jsonDecoder, lock, logger, message
-
-
Constructor Summary
Constructors Constructor and Description RestAddressMatchProvider()RestAddressMatchProvider(RestAddressMatchProviderSetting setting)
-
Method Summary
Methods Modifier and Type Method and Description voiddispose()Release the resource object.java.util.List<GeoAddress>geocoding(GeoCodingParam param)Forward address matching methodjava.util.List<GeoAddress>geodecoding(GeoDecodingParam param)Reverse address matching methodjava.util.List<java.lang.String>getDatasetNamesbyInUse(java.lang.String datasourceName)Gets a list of names for datasets used in the specified data source.java.util.List<java.lang.String>getDatasourceNames()Gets the list of data source names.protected RestProviderSettinggetRestProviderSetting()Return the rest service provider configuration information.java.lang.StringgetUid()Get the id of the address matching service provider A randomly generated identifier when the service provider starts upbooleanisUpdatingIndex()Whether the index is being updatedvoidsetProviderContext(ProviderContext context)Sets the service provider contextvoidupdateIndex(IndexUpdateParameter param)Update forward address match index-
Methods inherited from class com.supermap.services.providers.RestProviderBase
clearCache, executeRequest, executeRequest, executeRequest, executeRequestForByteArray, executeRequestForByteArray, executeRequestForByteArray, executeRequestForByteArray, executeRequestForList, executeRequestForList, executeRequestForList, executeRequestForList, executeRequestForStream, executeRequestForStream, executeRequestForStream, executeRequestForText, executeRequestForText, executeRequestForText, handleExeption, init, newAndSetClient, rectifyRestServiceRootURL
-
-
-
-
Constructor Detail
-
RestAddressMatchProvider
public RestAddressMatchProvider()
-
RestAddressMatchProvider
public RestAddressMatchProvider(RestAddressMatchProviderSetting setting)
-
-
Method Detail
-
setProviderContext
public void setProviderContext(ProviderContext context)
Description copied from interface:ProviderContextAwareSets the service provider context
- Specified by:
setProviderContextin interfaceProviderContextAware- Parameters:
context- service provider context
-
dispose
public void dispose()
Description copied from interface:DisposableRelease the resource object.
- Specified by:
disposein interfaceDisposable- Overrides:
disposein classRestProviderBase
-
geocoding
public java.util.List<GeoAddress> geocoding(GeoCodingParam param)
Description copied from interface:AddressMatchProviderForward address matching method- Specified by:
geocodingin interfaceAddressMatchProvider- Parameters:
param- Forward address matching parameters- Returns:
- Forward address matching result set
-
geodecoding
public java.util.List<GeoAddress> geodecoding(GeoDecodingParam param)
Description copied from interface:AddressMatchProviderReverse address matching method- Specified by:
geodecodingin interfaceAddressMatchProvider- Parameters:
param- Reverse address matching parameters- Returns:
- Reverse address matching result set
-
updateIndex
public void updateIndex(IndexUpdateParameter param)
Description copied from interface:AddressMatchProviderUpdate forward address match index- Specified by:
updateIndexin interfaceAddressMatchProvider- Parameters:
param- parameters for updating index
-
getRestProviderSetting
protected RestProviderSetting getRestProviderSetting()
Description copied from class:RestProviderBaseReturn the rest service provider configuration information.- Specified by:
getRestProviderSettingin classRestProviderBase- Returns:
-
isUpdatingIndex
public boolean isUpdatingIndex()
Description copied from interface:AddressMatchProviderWhether the index is being updated- Specified by:
isUpdatingIndexin interfaceAddressMatchProvider- Returns:
-
getUid
public java.lang.String getUid()
Description copied from interface:AddressMatchProviderGet the id of the address matching service provider A randomly generated identifier when the service provider starts up- Specified by:
getUidin interfaceAddressMatchProvider
-
getDatasourceNames
public java.util.List<java.lang.String> getDatasourceNames()
Description copied from interface:AddressMatchProviderGets the list of data source names.
- Specified by:
getDatasourceNamesin interfaceAddressMatchProvider- Returns:
- data source name list.
-
getDatasetNamesbyInUse
public java.util.List<java.lang.String> getDatasetNamesbyInUse(java.lang.String datasourceName)
Description copied from interface:AddressMatchProviderGets a list of names for datasets used in the specified data source.
- Specified by:
getDatasetNamesbyInUsein interfaceAddressMatchProvider- Returns:
- Data set name list.
-
-