diff options
author | Yana Stamcheva <yana@jitsi.org> | 2011-06-02 12:48:42 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2011-06-02 12:48:42 +0000 |
commit | 6c39c322f404f415a77bf7d1cb013b83b1e1e605 (patch) | |
tree | 4c10681da13342588fd7066b9aff64b90894fc52 /src/net/java/sip/communicator/plugin/provisioning | |
parent | 641e17e08486e7c780aea6a0fc6d65f3edacca10 (diff) | |
download | jitsi-6c39c322f404f415a77bf7d1cb013b83b1e1e605.zip jitsi-6c39c322f404f415a77bf7d1cb013b83b1e1e605.tar.gz jitsi-6c39c322f404f415a77bf7d1cb013b83b1e1e605.tar.bz2 |
Adds default values for provisioning method and URI.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/provisioning')
-rw-r--r-- | src/net/java/sip/communicator/plugin/provisioning/ProvisioningActivator.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/plugin/provisioning/ProvisioningActivator.java b/src/net/java/sip/communicator/plugin/provisioning/ProvisioningActivator.java index 4d81a2c..b1bf829 100644 --- a/src/net/java/sip/communicator/plugin/provisioning/ProvisioningActivator.java +++ b/src/net/java/sip/communicator/plugin/provisioning/ProvisioningActivator.java @@ -275,7 +275,18 @@ public class ProvisioningActivator */ public static String getProvisioningUri() { - return getConfigurationService().getString(PROPERTY_PROVISIONING_URL); + String provUri + = getConfigurationService().getString(PROPERTY_PROVISIONING_URL); + + if (provUri == null || provUri.length() <= 0) + { + provUri = getResourceService().getSettingsString( + "plugin.provisioning.DEFAULT_PROVISIONING_URI"); + + if (provUri != null && provUri.length() > 0) + setProvisioningUri(provUri); + } + return provUri; } /** |