From d29e0498ffab3b5309b2ae4e1dd981cca0ec75ad Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Thu, 12 Feb 2009 18:01:29 +0000
Subject: * Apply http://opensimulator.org/mantis/view.php?id=3138 * Adds a
GetXmlRPCHandler() to the BaseHttpServer * Thanks mpallari
---
OpenSim/Framework/Servers/BaseHttpServer.cs | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs
index 620a7f6..e0cc697 100644
--- a/OpenSim/Framework/Servers/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/BaseHttpServer.cs
@@ -157,6 +157,26 @@ namespace OpenSim.Framework.Servers
}
}
+ ///
+ /// Gets the XML RPC handler for given method name
+ ///
+ /// Name of the method
+ /// Returns null if not found
+ public XmlRpcMethod GetXmlRPCHandler(string method)
+ {
+ lock (m_rpcHandlers)
+ {
+ if (m_rpcHandlers.ContainsKey(method))
+ {
+ return m_rpcHandlers[method];
+ }
+ else
+ {
+ return null;
+ }
+ }
+ }
+
public bool AddHTTPHandler(string method, GenericHTTPMethod handler)
{
lock (m_HTTPHandlers)
--
cgit v1.1