diff options
Diffstat (limited to 'OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs')
-rw-r--r-- | OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs b/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs index e3cfac7..77719ee 100644 --- a/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs +++ b/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs | |||
@@ -1,34 +1,34 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | 4 | ||
5 | using OpenSim.Framework.Configuration; | 5 | using OpenSim.Framework.Configuration; |
6 | 6 | ||
7 | namespace OpenSim.Framework.Configuration.HTTP | 7 | namespace OpenSim.Framework.Configuration.HTTP |
8 | { | 8 | { |
9 | public class RemoteConfigSettings | 9 | public class RemoteConfigSettings |
10 | { | 10 | { |
11 | private ConfigurationMember configMember; | 11 | private ConfigurationMember configMember; |
12 | 12 | ||
13 | public string baseConfigURL = ""; | 13 | public string baseConfigURL = ""; |
14 | public RemoteConfigSettings(string filename) | 14 | public RemoteConfigSettings(string filename) |
15 | { | 15 | { |
16 | configMember = new ConfigurationMember(filename, "REMOTE CONFIG SETTINGS", loadConfigurationOptions, handleIncomingConfiguration); | 16 | configMember = new ConfigurationMember(filename, "REMOTE CONFIG SETTINGS", loadConfigurationOptions, handleIncomingConfiguration); |
17 | configMember.forceConfigurationPluginLibrary("OpenSim.Framework.Configuration.XML.dll"); | 17 | configMember.forceConfigurationPluginLibrary("OpenSim.Framework.Configuration.XML.dll"); |
18 | configMember.performConfigurationRetrieve(); | 18 | configMember.performConfigurationRetrieve(); |
19 | } | 19 | } |
20 | 20 | ||
21 | public void loadConfigurationOptions() | 21 | public void loadConfigurationOptions() |
22 | { | 22 | { |
23 | configMember.addConfigurationOption("base_config_url", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "URL Containing Configuration Files", "http://localhost/", false); | 23 | configMember.addConfigurationOption("base_config_url", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "URL Containing Configuration Files", "http://localhost/", false); |
24 | } | 24 | } |
25 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) | 25 | public bool handleIncomingConfiguration(string configuration_key, object configuration_result) |
26 | { | 26 | { |
27 | if (configuration_key == "base_config_url") | 27 | if (configuration_key == "base_config_url") |
28 | { | 28 | { |
29 | baseConfigURL = (string)configuration_result; | 29 | baseConfigURL = (string)configuration_result; |
30 | } | 30 | } |
31 | return true; | 31 | return true; |
32 | } | 32 | } |
33 | } | 33 | } |
34 | } | 34 | } |