Class FirstPlacemarkWinsGoogleResponseParser
- java.lang.Object
-
- de.hybris.platform.storelocator.impl.FirstPlacemarkWinsGoogleResponseParser
-
- All Implemented Interfaces:
org.springframework.web.client.ResponseExtractor<MapLocationData>
public class FirstPlacemarkWinsGoogleResponseParser extends java.lang.Object implements org.springframework.web.client.ResponseExtractor<MapLocationData>
Implementation ofResponseExtractorthat parses google geo-location responseDocumentinto aMapLocationDataobject. It uses a first win strategy, so the first placemark in the response is parsed.
-
-
Constructor Summary
Constructors Constructor Description FirstPlacemarkWinsGoogleResponseParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapLocationDataextractData(org.springframework.http.client.ClientHttpResponse response)
-
-
-
Method Detail
-
extractData
public MapLocationData extractData(org.springframework.http.client.ClientHttpResponse response) throws java.io.IOException
- Specified by:
extractDatain interfaceorg.springframework.web.client.ResponseExtractor<MapLocationData>- Throws:
java.io.IOException
-
-