From ac2fe53e894a52f8caf36535560682c4ee5d0091 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 22 May 2009 11:37:14 +0000 Subject: adding RemoveXmlRpcHandler to IHttpServer --- OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs | 12 ++++++++++++ .../Framework/Servers/HttpServer/Interfaces/IHttpServer.cs | 2 ++ 2 files changed, 14 insertions(+) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs index 779f577..5778214 100644 --- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs @@ -1512,6 +1512,18 @@ namespace OpenSim.Framework.Servers.HttpServer return false; } + + public void RemoveXmlRPCHandler(string method) + { + lock (m_rpcHandlers) + { + if (m_rpcHandlers.ContainsKey(method)) + { + m_rpcHandlers.Remove(method); + } + } + } + public bool RemoveLLSDHandler(string path, LLSDMethod handler) { diff --git a/OpenSim/Framework/Servers/HttpServer/Interfaces/IHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/Interfaces/IHttpServer.cs index 6e3cc49..f7a4c40 100644 --- a/OpenSim/Framework/Servers/HttpServer/Interfaces/IHttpServer.cs +++ b/OpenSim/Framework/Servers/HttpServer/Interfaces/IHttpServer.cs @@ -118,6 +118,8 @@ namespace OpenSim.Framework.Servers.HttpServer bool RemoveLLSDHandler(string path, LLSDMethod handler); void RemoveStreamHandler(string httpMethod, string path); + + void RemoveXmlRPCHandler(string method); string GetHTTP404(string host); -- cgit v1.1