Class 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 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 Detail

      • FirstPlacemarkWinsGoogleResponseParser

        public FirstPlacemarkWinsGoogleResponseParser()
    • 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