Class FirstPlacemarkWinsGoogleResponseParser
java.lang.Object
de.hybris.platform.storelocator.impl.FirstPlacemarkWinsGoogleResponseParser
- All Implemented Interfaces:
org.springframework.web.client.ResponseExtractor<MapLocationData>
public class FirstPlacemarkWinsGoogleResponseParser
extends Object
implements org.springframework.web.client.ResponseExtractor<MapLocationData>
Implementation of
ResponseExtractor that parses google geo-location response Document into a
MapLocationData object. It uses a first win strategy, so the first placemark in the response is parsed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractData(org.springframework.http.client.ClientHttpResponse response)
-
Constructor Details
-
FirstPlacemarkWinsGoogleResponseParser
public FirstPlacemarkWinsGoogleResponseParser()
-
-
Method Details
-
extractData
public MapLocationData extractData(org.springframework.http.client.ClientHttpResponse response) throws IOException - Specified by:
extractDatain interfaceorg.springframework.web.client.ResponseExtractor<MapLocationData>- Throws:
IOException
-