From 14728ba4e4c5883070f9a9848332ac9a3a1bf915 Mon Sep 17 00:00:00 2001 From: andrea Date: Mon, 11 Nov 2019 16:32:51 +0100 Subject: [PATCH] CCLJ-36 : set HTTPS as default connection scheme. Updated version number. --- code/pom.xml | 2 +- .../java/com/scientiamobile/wurflcloud/CloudClient.java | 2 +- .../com/scientiamobile/wurflcloud/utils/Constants.java | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/pom.xml b/code/pom.xml index 1ee6d39..bb8bc04 100755 --- a/code/pom.xml +++ b/code/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.scientiamobile.wurflcloud client-java - 1.0.9 + 1.0.10 jar wurfl-cloud-client diff --git a/code/src/main/java/com/scientiamobile/wurflcloud/CloudClient.java b/code/src/main/java/com/scientiamobile/wurflcloud/CloudClient.java index 8f376d2..e7398f3 100755 --- a/code/src/main/java/com/scientiamobile/wurflcloud/CloudClient.java +++ b/code/src/main/java/com/scientiamobile/wurflcloud/CloudClient.java @@ -403,7 +403,7 @@ private URLConnection setupUrlConnection(String request) throws IOException { logger.debug("Setting read timeout: " + config.readTimeout + " mSec"); connection.setReadTimeout(config.readTimeout); - if (Constants.API_TYPE.equals(Constants.API_HTTP) && connection instanceof HttpURLConnection) { + if (Constants.API_TYPE.equals(Constants.API_HTTPS) && connection instanceof HttpURLConnection) { logger.info("Explicitly setting connection method to GET"); ((HttpURLConnection)connection).setRequestMethod("GET"); } diff --git a/code/src/main/java/com/scientiamobile/wurflcloud/utils/Constants.java b/code/src/main/java/com/scientiamobile/wurflcloud/utils/Constants.java index ab96670..22f434a 100755 --- a/code/src/main/java/com/scientiamobile/wurflcloud/utils/Constants.java +++ b/code/src/main/java/com/scientiamobile/wurflcloud/utils/Constants.java @@ -24,7 +24,7 @@ public interface Constants { /** * The version of this client */ - String CLIENT_VERSION = "1.0.9"; + String CLIENT_VERSION = "1.0.10"; /** * Accepted encoding enum. @@ -58,7 +58,7 @@ private Encoding(String val) { /** * The WURFL Cloud Service API type */ - String API_HTTP = "http"; + String API_HTTPS = "https"; /** * Request path prefix. @@ -89,10 +89,10 @@ private Encoding(String val) { int DEFAULT_REPORT_INTERVAL = 60; /** - * The WURFL Cloud API Type to be used. Currently, only WurflCloudClientConfig::API_HTTP is supported. + * The WURFL Cloud API Type to be used. Currently, only WurflCloudClientConfig::API_HTTPS is supported. */ - String API_TYPE = API_HTTP; + String API_TYPE = API_HTTPS; /** * Cookie name, for cookie cache use.