From f10666c7ba6d3af9822d20026674afd74a6bb3fc Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 1 May 2011 10:07:54 -0700 Subject: How this might look like from a configuration perspective. Changes OpenSimDefaults.ini. --- OpenSim/Capabilities/Caps.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Capabilities/Caps.cs b/OpenSim/Capabilities/Caps.cs index 3be97b5..c98498d 100644 --- a/OpenSim/Capabilities/Caps.cs +++ b/OpenSim/Capabilities/Caps.cs @@ -85,6 +85,7 @@ namespace OpenSim.Framework.Capabilities public string CapsObjectPath { get { return m_capsObjectPath; } } private CapsHandlers m_capsHandlers; + private Dictionary m_externalCapsHandlers; private static readonly string m_requestPath = "0000/"; // private static readonly string m_mapLayerPath = "0001/"; @@ -167,6 +168,7 @@ namespace OpenSim.Framework.Capabilities m_agentID = agent; m_dumpAssetsToFile = dumpAssetsToFile; m_capsHandlers = new CapsHandlers(httpServer, httpListen, httpPort, (httpServer == null) ? false : httpServer.UseSSL); + m_externalCapsHandlers = new Dictionary(); m_regionName = regionName; } @@ -267,6 +269,17 @@ namespace OpenSim.Framework.Capabilities } /// + /// Register an external handler. The service for this capability is somewhere else + /// given by the URL. + /// + /// + /// + public void RegisterHandler(string capsName, string url) + { + m_externalCapsHandlers.Add(capsName, url); + } + + /// /// Remove all CAPS service handlers. /// /// -- cgit v1.1