aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs
diff options
context:
space:
mode:
authorBlueWall2012-01-17 22:10:47 -0500
committerBlueWall2012-01-17 22:10:47 -0500
commit717656c453843a77dfef6d183565ab55e94e68fc (patch)
tree20faf85730869b675b5e688ee333a89806b67fb8 /OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs
parentChange linux, windows and mac ODE libraries to use the GIMPACT collider rathe... (diff)
parentUpdate osGetGrid**** functions (diff)
downloadopensim-SC_OLD-717656c453843a77dfef6d183565ab55e94e68fc.zip
opensim-SC_OLD-717656c453843a77dfef6d183565ab55e94e68fc.tar.gz
opensim-SC_OLD-717656c453843a77dfef6d183565ab55e94e68fc.tar.bz2
opensim-SC_OLD-717656c453843a77dfef6d183565ab55e94e68fc.tar.xz
Merge branch 'master' of /home/opensim/src/opensim
Diffstat (limited to 'OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs')
-rw-r--r--OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs b/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs
index 645a77f..bfcddca 100644
--- a/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs
+++ b/OpenSim/Server/Handlers/Grid/GridInfoHandlers.cs
@@ -37,6 +37,7 @@ using Nini.Config;
37using Nwc.XmlRpc; 37using Nwc.XmlRpc;
38using OpenSim.Framework; 38using OpenSim.Framework;
39using OpenSim.Framework.Servers.HttpServer; 39using OpenSim.Framework.Servers.HttpServer;
40using OpenMetaverse.StructuredData;
40 41
41namespace OpenSim.Server.Handlers.Grid 42namespace OpenSim.Server.Handlers.Grid
42{ 43{
@@ -142,5 +143,19 @@ namespace OpenSim.Server.Handlers.Grid
142 143
143 return sb.ToString(); 144 return sb.ToString();
144 } 145 }
146
147 public string JsonGetGridInfoMethod(string request, string path, string param,
148 IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)
149 {
150
151 OSDMap map = new OSDMap();
152
153 foreach (string k in _info.Keys)
154 {
155 map[k] = OSD.FromString(_info[k].ToString());
156 }
157
158 return OSDParser.SerializeJsonString(map).ToString();
159 }
145 } 160 }
146} 161}