From b2eb668814586f6c4df7644ed33e9574a0697fc0 Mon Sep 17 00:00:00 2001
From: MW
Date: Fri, 22 Jun 2007 22:30:39 +0000
Subject: Deleted some comments being wrote to console
---
OpenSim/OpenSim.Region/Caps.cs | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
(limited to 'OpenSim')
diff --git a/OpenSim/OpenSim.Region/Caps.cs b/OpenSim/OpenSim.Region/Caps.cs
index c672d29..f3ee628 100644
--- a/OpenSim/OpenSim.Region/Caps.cs
+++ b/OpenSim/OpenSim.Region/Caps.cs
@@ -13,6 +13,7 @@ namespace OpenSim.Region
private string MainPath = "00334-0000/";
private string MapLayerPath = "00334-0001/";
private BaseHttpServer httpListener;
+ // private LLUUID agentID;
public Caps(BaseHttpServer httpServer, string httpListen, uint httpPort)
{
@@ -26,7 +27,7 @@ namespace OpenSim.Region
///
public void RegisterHandlers()
{
- Console.WriteLine("registering caps handlers");
+ Console.WriteLine("registering CAPS handlers");
httpListener.AddRestHandler("POST", "/CAPS/" + MainPath, CapsRequest);
httpListener.AddRestHandler("POST", "/CAPS/" + MapLayerPath, MapLayer);
}
@@ -40,7 +41,6 @@ namespace OpenSim.Region
///
public string CapsRequest(string request, string path, string param)
{
- Console.WriteLine("Caps request " + request);
string result = "";
@@ -53,7 +53,10 @@ namespace OpenSim.Region
///
protected string GetCapabilities()
{
- string capURLS = "MapLayerhttp://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + MapLayerPath + "";
+ string capURLS="";
+
+ capURLS += "MapLayerhttp://" + httpListenerAddress + ":" + httpListenPort.ToString() + "/CAPS/" + MapLayerPath + "";
+
return capURLS;
}
@@ -66,7 +69,7 @@ namespace OpenSim.Region
///
public string MapLayer(string request, string path, string param)
{
- Console.WriteLine("Caps MapLayer request " + request);
+
string res = "";
@@ -79,6 +82,7 @@ namespace OpenSim.Region
///
protected string BuildLLSDMapLayerResponse()
{
+ string res = "";
int left;
int right;
int top;
@@ -91,7 +95,8 @@ namespace OpenSim.Region
right = 1500;
image = new LLUUID("00000000-0000-0000-9999-000000000006");
- string res= "Left"+left+"Bottom"+bottom +"Top"+top+"Right"+right+"ImageID"+image.ToStringHyphenated()+"";
+ res += "Left" + left + "Bottom" + bottom + "Top" + top + "Right" + right + "ImageID" + image.ToStringHyphenated() + "";
+
return res;
}
}
--
cgit v1.1