30 using OpenSim.Server.Base;
31 using OpenSim.Services.Interfaces;
32 using OpenSim.Framework.Servers.HttpServer;
33 using OpenSim.Server.Handlers.Base;
36 namespace OpenSim.Capabilities.Handlers
41 private string m_ConfigName =
"CapsService";
44 : base(config, server, configName)
46 if (configName != String.Empty)
47 m_ConfigName = configName;
49 IConfig serverConfig = config.Configs[m_ConfigName];
50 if (serverConfig == null)
51 throw new Exception(String.Format(
"No section '{0}' in config file", m_ConfigName));
53 string invService = serverConfig.GetString(
"InventoryService", String.Empty);
55 if (invService == String.Empty)
56 throw new Exception(
"No InventoryService in config file");
58 Object[] args =
new Object[] { config };
61 if (m_InventoryService == null)
62 throw new Exception(String.Format(
"Failed to load InventoryService from {0}; config is {1}", invService, m_ConfigName));
67 "POST",
"/CAPS/FetchInventory/", fiHandler.FetchInventoryRequest,
"FetchInventory", null);
68 server.AddStreamHandler(reqHandler);
Interface to OpenSimulator's built in HTTP server. Use this to register handlers (http, llsd, xmlrpc, etc.) for given URLs.
FetchInventory2ServerConnector(IConfigSource config, IHttpServer server, string configName)