Repository: camel Updated Branches: refs/heads/master 2b907692b -> 917b3238c
CAMEL-11301: Camel-weather and camel-geocoder: freegeoip.io/json has been moved permanently Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/917b3238 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/917b3238 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/917b3238 Branch: refs/heads/master Commit: 917b3238c0961cdb52012714540680b9c2c94f7a Parents: 2b90769 Author: Andrea Cosentino <anco...@gmail.com> Authored: Mon May 22 08:35:24 2017 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Mon May 22 08:35:24 2017 +0200 ---------------------------------------------------------------------- .../java/org/apache/camel/component/geocoder/GeoCoderProducer.java | 2 +- .../weather/geolocation/FreeGeoIpGeoLocationProvider.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/917b3238/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java ---------------------------------------------------------------------- diff --git a/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java b/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java index 403d01a..8e2f480 100644 --- a/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java +++ b/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderProducer.java @@ -98,7 +98,7 @@ public class GeoCoderProducer extends DefaultProducer { protected void processCurrentLocation(Exchange exchange) throws Exception { LOG.debug("Geocode for current address"); - String json = exchange.getContext().getTypeConverter().mandatoryConvertTo(String.class, new URL("http://freegeoip.net/json/")); + String json = exchange.getContext().getTypeConverter().mandatoryConvertTo(String.class, new URL("https://freegeoip.net/json/")); if (isEmpty(json)) { throw new IllegalStateException("Got the unexpected value '" + json + "' for the geolocation"); } http://git-wip-us.apache.org/repos/asf/camel/blob/917b3238/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java ---------------------------------------------------------------------- diff --git a/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java b/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java index 5b941b8..1c32fb4 100644 --- a/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java +++ b/components/camel-weather/src/main/java/org/apache/camel/component/weather/geolocation/FreeGeoIpGeoLocationProvider.java @@ -37,7 +37,7 @@ public class FreeGeoIpGeoLocationProvider implements GeoLocationProvider { @Override public GeoLocation getCurrentGeoLocation() throws Exception { HttpClient httpClient = component.getHttpClient(); - GetMethod getMethod = new GetMethod("http://freegeoip.io/json/"); + GetMethod getMethod = new GetMethod("https://freegeoip.io/json/"); try { int statusCode = httpClient.executeMethod(getMethod); if (statusCode != HttpStatus.SC_OK) {