Class MockedGeoServiceWrapper
- java.lang.Object
-
- de.hybris.platform.storelocator.impl.CommerceMockGeoWebServiceWrapper
-
- de.hybris.platform.ycommercewebservicestest.storelocator.impl.MockedGeoServiceWrapper
-
- All Implemented Interfaces:
GeoWebServiceWrapper
public class MockedGeoServiceWrapper extends CommerceMockGeoWebServiceWrapper
Mock wrapper to avoid communication with google geo-location services.
-
-
Constructor Summary
Constructors Constructor Description MockedGeoServiceWrapper(java.util.Map<java.lang.String,GPS> geoMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GPSgeocodeAddress(AddressData address)Translate AddressData to IGPS using 3rd party serviceGPSgeocodeAddress(Location address)Translate IAddress to IGPS using 3rd party service-
Methods inherited from class de.hybris.platform.storelocator.impl.CommerceMockGeoWebServiceWrapper
formatAddress, getBaseStoreService, getCountryIsoGPSLocationMap, getDistanceAndRoute, getDistanceAndRoute, setBaseStoreService, setCountryIsoGPSLocationMap
-
-
-
-
Constructor Detail
-
MockedGeoServiceWrapper
public MockedGeoServiceWrapper(java.util.Map<java.lang.String,GPS> geoMap)
-
-
Method Detail
-
geocodeAddress
public GPS geocodeAddress(Location address) throws GeoServiceWrapperException
Description copied from interface:GeoWebServiceWrapperTranslate IAddress to IGPS using 3rd party service- Specified by:
geocodeAddressin interfaceGeoWebServiceWrapper- Overrides:
geocodeAddressin classCommerceMockGeoWebServiceWrapper- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
geocodeAddress
public GPS geocodeAddress(AddressData address) throws GeoServiceWrapperException
Description copied from interface:GeoWebServiceWrapperTranslate AddressData to IGPS using 3rd party service- Specified by:
geocodeAddressin interfaceGeoWebServiceWrapper- Overrides:
geocodeAddressin classCommerceMockGeoWebServiceWrapper- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
-