summaryrefslogtreecommitdiff
path: root/src/se/leap
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-11-07 11:28:58 +0100
committerParménides GV <parmegv@sdf.org>2013-12-10 18:16:07 +0100
commit9ff9dc75f267bd6e339c026c4f3e73478210b0b6 (patch)
tree8e95d8061910195f24078e8aa81ce7646a954940 /src/se/leap
parent803134b94029160a5c885a2d93d78080b0aa8013 (diff)
JavaDoc for pickErrorMessage
Diffstat (limited to 'src/se/leap')
-rw-r--r--src/se/leap/bitmaskclient/ProviderAPI.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/se/leap/bitmaskclient/ProviderAPI.java b/src/se/leap/bitmaskclient/ProviderAPI.java
index 4dc1844a..e8f37c8a 100644
--- a/src/se/leap/bitmaskclient/ProviderAPI.java
+++ b/src/se/leap/bitmaskclient/ProviderAPI.java
@@ -544,6 +544,12 @@ public class ProviderAPI extends IntentService {
return EIP_SERVICE_JSON_DOWNLOADED;
}
+ /**
+ * Interprets the error message as a JSON object and extract the "errors" keyword pair.
+ * If the error message is not a JSON object, then it is returned untouched.
+ * @param string_json_error_message
+ * @return final error message
+ */
private String pickErrorMessage(String string_json_error_message) {
String error_message = "";
try {
@@ -556,6 +562,7 @@ public class ProviderAPI extends IntentService {
return error_message;
}
+
/**
* Tries to download the contents of the provided url using commercially validated CA certificate from chosen provider.
*