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