aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs
diff options
context:
space:
mode:
authormingchen2007-07-23 19:30:33 +0000
committermingchen2007-07-23 19:30:33 +0000
commit87bddd32dfdb6ab43ef21703053935d3cda69c51 (patch)
tree70d1beaf870770d9180756ae74bd77d3376ec9fb /OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs
parentApplied makomk 's patch from issue #219. (diff)
downloadopensim-SC_OLD-87bddd32dfdb6ab43ef21703053935d3cda69c51.zip
opensim-SC_OLD-87bddd32dfdb6ab43ef21703053935d3cda69c51.tar.gz
opensim-SC_OLD-87bddd32dfdb6ab43ef21703053935d3cda69c51.tar.bz2
opensim-SC_OLD-87bddd32dfdb6ab43ef21703053935d3cda69c51.tar.xz
*Added configuration plugin (OpenSim.Framework.Configuration.HTTP.dll) that fetches a file from a remote server
*Right now, values are not saved back to the remote server, but that will be changed *Removed some warnings from invalid references that were not used anyways
Diffstat (limited to 'OpenSim/Framework/Configuration/HTTP/RemoteConfigSettings.cs')
-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}