mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* Adds a GetXmlRPCHandler() to the BaseHttpServer * Thanks mpallari
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user