* Adds a GetXmlRPCHandler() to the BaseHttpServer
* Thanks mpallari
This commit is contained in:
Justin Clarke Casey
2009-02-12 18:01:29 +00:00
parent f74326c1b0
commit d29e0498ff

View File

@@ -157,6 +157,26 @@ namespace OpenSim.Framework.Servers
}
}
/// <summary>
/// Gets the XML RPC handler for given method name
/// </summary>
/// <param name="method">Name of the method</param>
/// <returns>Returns null if not found</returns>
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)