Class FirstPlacemarkWinsBaiduResponseParser
java.lang.Object
de.hybris.platform.chinesestoreservices.map.FirstPlacemarkWinsBaiduResponseParser
- All Implemented Interfaces:
org.springframework.web.client.ResponseExtractor<MapLocationData>
public class FirstPlacemarkWinsBaiduResponseParser
extends Object
implements org.springframework.web.client.ResponseExtractor<MapLocationData>
Implementation of
ResponseExtractor that parses baidu geo-location json response 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
-
FirstPlacemarkWinsBaiduResponseParser
public FirstPlacemarkWinsBaiduResponseParser()
-
-
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
-