summaryrefslogtreecommitdiff
path: root/src/se/leap/leapclient/Provider.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-07-20 10:55:50 +0200
committerParménides GV <parmegv@sdf.org>2013-07-20 10:55:50 +0200
commita5928718b99e207ceb8dbce4609662ecef1a26cf (patch)
treeecb52c38518a83faa03c2708a0e8f22bae57b87d /src/se/leap/leapclient/Provider.java
parent3d652a20b5c28b0a424d516161034b23b2523d95 (diff)
parent5edc2af535d177edaeda97523a04c6f73fad26a4 (diff)
Merge branch 'feature/dashboard-ux' into develop
Diffstat (limited to 'src/se/leap/leapclient/Provider.java')
-rw-r--r--src/se/leap/leapclient/Provider.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/se/leap/leapclient/Provider.java b/src/se/leap/leapclient/Provider.java
index 189c3a84..72184eb0 100644
--- a/src/se/leap/leapclient/Provider.java
+++ b/src/se/leap/leapclient/Provider.java
@@ -36,6 +36,7 @@ public final class Provider implements Serializable {
// Some API pieces we want to know about
private static final String API_TERM_SERVICES = "services";
private static final String API_TERM_NAME = "name";
+ private static final String API_TERM_DOMAIN = "domain";
private static final String API_TERM_DEFAULT_LANGUAGE = "default_language";
protected static final String[] API_EIP_TYPES = {"openvpn"};
@@ -79,6 +80,17 @@ public final class Provider implements Serializable {
}
}
+ protected String getDomain(){
+ String domain = "Null";
+ try {
+ domain = definition.getString(API_TERM_DOMAIN);
+ } catch (JSONException e) {
+ domain = "Null";
+ e.printStackTrace();
+ }
+ return domain;
+ }
+
protected String getName(){
// Should we pass the locale in, or query the system here?
String lang = Locale.getDefault().getLanguage();