* Adds a GetXmlRPCHandler() to the BaseHttpServer
* Thanks mpallari
0.6.3-post-fixes
Justin Clarke Casey 2009-02-12 18:01:29 +00:00
parent f74326c1b0
commit d29e0498ff
1 changed files with 20 additions and 0 deletions

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) public bool AddHTTPHandler(string method, GenericHTTPMethod handler)
{ {
lock (m_HTTPHandlers) lock (m_HTTPHandlers)