aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/BaseHttpServer.cs20
1 files changed, 20 insertions, 0 deletions
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
157 } 157 }
158 } 158 }
159 159
160 /// <summary>
161 /// Gets the XML RPC handler for given method name
162 /// </summary>
163 /// <param name="method">Name of the method</param>
164 /// <returns>Returns null if not found</returns>
165 public XmlRpcMethod GetXmlRPCHandler(string method)
166 {
167 lock (m_rpcHandlers)
168 {
169 if (m_rpcHandlers.ContainsKey(method))
170 {
171 return m_rpcHandlers[method];
172 }
173 else
174 {
175 return null;
176 }
177 }
178 }
179
160 public bool AddHTTPHandler(string method, GenericHTTPMethod handler) 180 public bool AddHTTPHandler(string method, GenericHTTPMethod handler)
161 { 181 {
162 lock (m_HTTPHandlers) 182 lock (m_HTTPHandlers)