public class RestAddressMatchProvider extends RestProviderBase implements AddressMatchProvider, Disposable, ProviderContextAware
RestProviderBase.CacheModel, RestProviderBase.RestRequestException
JAVA_POSTFIX, javaConverter, JSON_POSTFIX, jsonConverter, jsonDecoder, lock, logger, message
Constructor and Description |
---|
RestAddressMatchProvider() |
RestAddressMatchProvider(RestAddressMatchProviderSetting setting) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Release the resource object.
|
java.util.List<GeoAddress> |
geocoding(GeoCodingParam param)
Forward address matching method
|
java.util.List<GeoAddress> |
geodecoding(GeoDecodingParam param)
Reverse address matching method
|
java.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 RestProviderSetting |
getRestProviderSetting()
Return the rest service provider configuration information.
|
java.lang.String |
getUid()
Get the id of the address matching service provider A randomly generated identifier when the service provider starts up
|
boolean |
isUpdatingIndex()
Whether the index is being updated
|
void |
setProviderContext(ProviderContext context)
Sets the service provider context
|
void |
updateIndex(IndexUpdateParameter param)
Update forward address match index
|
clearCache, executeRequest, executeRequest, executeRequest, executeRequestForByteArray, executeRequestForByteArray, executeRequestForByteArray, executeRequestForByteArray, executeRequestForList, executeRequestForList, executeRequestForList, executeRequestForList, executeRequestForStream, executeRequestForStream, executeRequestForStream, executeRequestForText, executeRequestForText, executeRequestForText, handleExeption, init, newAndSetClient, rectifyRestServiceRootURL
public RestAddressMatchProvider()
public RestAddressMatchProvider(RestAddressMatchProviderSetting setting)
public void setProviderContext(ProviderContext context)
ProviderContextAware
Sets the service provider context
setProviderContext
in interface ProviderContextAware
context
- service provider contextpublic void dispose()
Disposable
Release the resource object.
dispose
in interface Disposable
dispose
in class RestProviderBase
public java.util.List<GeoAddress> geocoding(GeoCodingParam param)
AddressMatchProvider
geocoding
in interface AddressMatchProvider
param
- Forward address matching parameterspublic java.util.List<GeoAddress> geodecoding(GeoDecodingParam param)
AddressMatchProvider
geodecoding
in interface AddressMatchProvider
param
- Reverse address matching parameterspublic void updateIndex(IndexUpdateParameter param)
AddressMatchProvider
updateIndex
in interface AddressMatchProvider
param
- parameters for updating indexprotected RestProviderSetting getRestProviderSetting()
RestProviderBase
getRestProviderSetting
in class RestProviderBase
public boolean isUpdatingIndex()
AddressMatchProvider
isUpdatingIndex
in interface AddressMatchProvider
public java.lang.String getUid()
AddressMatchProvider
getUid
in interface AddressMatchProvider
public java.util.List<java.lang.String> getDatasourceNames()
AddressMatchProvider
Gets the list of data source names.
getDatasourceNames
in interface AddressMatchProvider
public java.util.List<java.lang.String> getDatasetNamesbyInUse(java.lang.String datasourceName)
AddressMatchProvider
Gets a list of names for datasets used in the specified data source.
getDatasetNamesbyInUse
in interface AddressMatchProvider