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 GPS
geocodeAddress(AddressData address)
Translate AddressData to IGPS using 3rd party serviceGPS
geocodeAddress(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:GeoWebServiceWrapper
Translate IAddress to IGPS using 3rd party service- Specified by:
geocodeAddress
in interfaceGeoWebServiceWrapper
- Overrides:
geocodeAddress
in classCommerceMockGeoWebServiceWrapper
- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
geocodeAddress
public GPS geocodeAddress(AddressData address) throws GeoServiceWrapperException
Description copied from interface:GeoWebServiceWrapper
Translate AddressData to IGPS using 3rd party service- Specified by:
geocodeAddress
in interfaceGeoWebServiceWrapper
- Overrides:
geocodeAddress
in classCommerceMockGeoWebServiceWrapper
- Returns:
- IGPS
- Throws:
GeoServiceWrapperException
-
-