aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionLoader/Web
diff options
context:
space:
mode:
authorAdam Frisby2008-04-21 07:09:17 +0000
committerAdam Frisby2008-04-21 07:09:17 +0000
commitfef3b3689492dea63693c964bcdbec9f5137eb5e (patch)
tree7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Framework/RegionLoader/Web
parent* Terrain Module code has been reformatted to comply with guidelines. (diff)
downloadopensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to 'OpenSim/Framework/RegionLoader/Web')
-rw-r--r--OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs12
1 files changed, 7 insertions, 5 deletions
diff --git a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs
index 098e305..17077e7 100644
--- a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs
+++ b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs
@@ -25,17 +25,19 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
28using System.IO; 29using System.IO;
29using System.Net; 30using System.Net;
31using System.Reflection;
30using System.Xml; 32using System.Xml;
33using log4net;
31using Nini.Config; 34using Nini.Config;
32using OpenSim.Framework.Console;
33 35
34namespace OpenSim.Framework.RegionLoader.Web 36namespace OpenSim.Framework.RegionLoader.Web
35{ 37{
36 public class RegionLoaderWebServer : IRegionLoader 38 public class RegionLoaderWebServer : IRegionLoader
37 { 39 {
38 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 40 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
39 41
40 private IniConfigSource m_configSouce; 42 private IniConfigSource m_configSouce;
41 43
@@ -54,8 +56,8 @@ namespace OpenSim.Framework.RegionLoader.Web
54 else 56 else
55 { 57 {
56 IniConfig startupConfig = (IniConfig) m_configSouce.Configs["Startup"]; 58 IniConfig startupConfig = (IniConfig) m_configSouce.Configs["Startup"];
57 string url = startupConfig.GetString("regionload_webserver_url", System.String.Empty).Trim(); 59 string url = startupConfig.GetString("regionload_webserver_url", String.Empty).Trim();
58 if (url == System.String.Empty) 60 if (url == String.Empty)
59 { 61 {
60 m_log.Error("[WEBLOADER]: Unable to load webserver URL - URL was empty."); 62 m_log.Error("[WEBLOADER]: Unable to load webserver URL - URL was empty.");
61 return null; 63 return null;
@@ -68,7 +70,7 @@ namespace OpenSim.Framework.RegionLoader.Web
68 HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse(); 70 HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse();
69 m_log.Debug("[WEBLOADER]: Downloading Region Information From Remote Server..."); 71 m_log.Debug("[WEBLOADER]: Downloading Region Information From Remote Server...");
70 StreamReader reader = new StreamReader(webResponse.GetResponseStream()); 72 StreamReader reader = new StreamReader(webResponse.GetResponseStream());
71 string xmlSource = System.String.Empty; 73 string xmlSource = String.Empty;
72 string tempStr = reader.ReadLine(); 74 string tempStr = reader.ReadLine();
73 while (tempStr != null) 75 while (tempStr != null)
74 { 76 {