30 using OpenSim.Server.Base;
31 using OpenSim.Services.Interfaces;
32 using OpenSim.Framework.Servers.HttpServer;
33 using OpenSim.Server.Handlers.Base;
35 namespace OpenSim.Server.Handlers.Hypergrid
41 private string m_ConfigName =
"HGFriendsService";
45 this(config, server, configName, null)
52 : base(config, server, configName)
54 if (configName !=
string.Empty)
55 m_ConfigName = configName;
57 Object[] args =
new Object[] { config, m_ConfigName, localConn };
59 IConfig serverConfig = config.Configs[m_ConfigName];
60 if (serverConfig == null)
61 throw new Exception(String.Format(
"No section {0} in config file", m_ConfigName));
63 string theService = serverConfig.GetString(
"LocalServiceModule",
65 if (theService == String.Empty)
66 throw new Exception(
"No LocalServiceModule in config file");
69 theService = serverConfig.GetString(
"UserAgentService", string.Empty);
70 if (theService == String.Empty)
71 throw new Exception(
"No UserAgentService in " + m_ConfigName);
72 m_UserAgentService = ServerUtils.LoadPlugin<
IUserAgentService>(theService,
new Object[] { config, localConn });
Interface to OpenSimulator's built in HTTP server. Use this to register handlers (http, llsd, xmlrpc, etc.) for given URLs.
HGFriendsServerConnector(IConfigSource config, IHttpServer server, string configName)
HGFriendsServerConnector(IConfigSource config, IHttpServer server, string configName, IFriendsSimConnector localConn)