@Service(value="blGeolocationService") public class GeolocationServiceImpl extends Object implements GeolocationService
Modifier and Type | Field and Description |
---|---|
protected org.springframework.core.env.Environment |
env |
protected Map<String,GeolocationAPI> |
geolocationMap |
Constructor and Description |
---|
GeolocationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected GeolocationAPI |
getGeolocationAPI() |
GeolocationDTO |
getLocationData(String ipAddress)
Gets the location data for the passed IP address
|
protected org.springframework.core.env.Environment env
@Autowired(required=false) protected Map<String,GeolocationAPI> geolocationMap
public GeolocationDTO getLocationData(String ipAddress)
GeolocationService
getLocationData
in interface GeolocationService
protected GeolocationAPI getGeolocationAPI()
Copyright © 2019. All rights reserved.