From 03efaff60e2c4204bfac33de22e69377ba28be7c Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Mon, 28 Jul 2008 12:18:48 +0000 Subject: moving GridInfo application plugin into a common standalone/grid service, adding a plain REST GET handler returning XML (no LLSD), adding appropriate add handler calls to OpenSimBase and UserServer. --- OpenSim/Region/Application/OpenSimBase.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 6889a61..c2d30e4 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -40,6 +40,7 @@ using OpenSim.Framework.Communications.Cache; using OpenSim.Framework.Console; using OpenSim.Framework.Servers; using OpenSim.Framework.Statistics; +using OpenSim.Common.Communications; using OpenSim.Region.ClientStack; using OpenSim.Region.Communications.Local; using OpenSim.Region.Communications.OGS1; @@ -79,6 +80,7 @@ namespace OpenSim public bool m_see_into_region_from_neighbor; protected LocalLoginService m_loginService; + protected GridInfoService m_gridInfoService; protected string m_storageDll; protected string m_clientstackDll; @@ -382,6 +384,11 @@ namespace OpenSim // Provides the LLSD login m_httpServer.SetLLSDHandler(m_loginService.LLSDLoginMethod); + // provide grid info + m_gridInfoService = new GridInfoService(); + m_httpServer.AddXmlRPCHandler("get_grid_info", m_gridInfoService.XmlRpcGridInfoMethod); + m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info", m_gridInfoService.RestGetGridInfoMethod)); + CreateAccount = localComms.doCreate; } else -- cgit v1.1