Class FirstPlacemarkWinsBaiduResponseParser

  • All Implemented Interfaces:
    org.springframework.web.client.ResponseExtractor<MapLocationData>

    public class FirstPlacemarkWinsBaiduResponseParser
    extends java.lang.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 Detail

      • FirstPlacemarkWinsBaiduResponseParser

        public FirstPlacemarkWinsBaiduResponseParser()
    • Method Detail

      • extractData

        public MapLocationData extractData​(org.springframework.http.client.ClientHttpResponse response)
                                    throws java.io.IOException
        Specified by:
        extractData in interface org.springframework.web.client.ResponseExtractor<MapLocationData>
        Throws:
        java.io.IOException