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
42 private string m_ConfigName =
"CapsService";
45 base(config, server, configName)
47 if (configName != String.Empty)
48 m_ConfigName = configName;
50 IConfig serverConfig = config.Configs[m_ConfigName];
51 if (serverConfig == null)
52 throw new Exception(String.Format(
"No section '{0}' in config file", m_ConfigName));
54 string invService = serverConfig.GetString(
"InventoryService", String.Empty);
56 if (invService == String.Empty)
57 throw new Exception(
"No InventoryService in config file");
59 Object[] args =
new Object[] { config };
63 if (m_InventoryService == null)
64 throw new Exception(String.Format(
"Failed to load InventoryService from {0}; config is {1}", invService, m_ConfigName));
66 string libService = serverConfig.GetString(
"LibraryService", String.Empty);
74 "/CAPS/WebFetchInvDesc/" ,
75 webFetchHandler.FetchInventoryDescendentsRequest,
76 "FetchInvDescendents",
78 server.AddStreamHandler(reqHandler);
Interface to OpenSimulator's built in HTTP server. Use this to register handlers (http, llsd, xmlrpc, etc.) for given URLs.
FetchInvDescServerConnector(IConfigSource config, IHttpServer server, string configName)