aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseHttpServer.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-02-12 18:01:29 +0000
committerJustin Clarke Casey2009-02-12 18:01:29 +0000
commitd29e0498ffab3b5309b2ae4e1dd981cca0ec75ad (patch)
treedd64b10421916ec090bcbd5ca47942cb33dd6d89 /OpenSim/Framework/Servers/BaseHttpServer.cs
parent* move userinfo for inventory archiving up to module class so that it only ha... (diff)
downloadopensim-SC_OLD-d29e0498ffab3b5309b2ae4e1dd981cca0ec75ad.zip
opensim-SC_OLD-d29e0498ffab3b5309b2ae4e1dd981cca0ec75ad.tar.gz
opensim-SC_OLD-d29e0498ffab3b5309b2ae4e1dd981cca0ec75ad.tar.bz2
opensim-SC_OLD-d29e0498ffab3b5309b2ae4e1dd981cca0ec75ad.tar.xz
* Apply http://opensimulator.org/mantis/view.php?id=3138
* Adds a GetXmlRPCHandler() to the BaseHttpServer * Thanks mpallari
Diffstat (limited to 'OpenSim/Framework/Servers/BaseHttpServer.cs')
-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)