aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/ApplicationPlugins/Rest
diff options
context:
space:
mode:
authorteravus2012-11-15 10:05:16 -0500
committerteravus2012-11-15 10:05:16 -0500
commite9153e1d1aae50024d8cd05fe14a9bce34343a0e (patch)
treebc111d34f95a26b99c7e34d9e495dc14d1802cc3 /OpenSim/ApplicationPlugins/Rest
parentMerge master into teravuswork (diff)
downloadopensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.zip
opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.gz
opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.bz2
opensim-SC-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.xz
Revert "Merge master into teravuswork", it should have been avination, not master.
This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
Diffstat (limited to '')
-rw-r--r--OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs30
-rw-r--r--OpenSim/ApplicationPlugins/Rest/RestPlugin.cs14
2 files changed, 19 insertions, 25 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs
index 072bd6f..cb88695 100644
--- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs
+++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs
@@ -312,16 +312,14 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
312 // Now that everything is setup we can proceed to 312 // Now that everything is setup we can proceed to
313 // add THIS agent to the HTTP server's handler list 313 // add THIS agent to the HTTP server's handler list
314 314
315 // FIXME: If this code is ever to be re-enabled (most of it is disabled already) then this will 315 if (!AddAgentHandler(Rest.Name,this))
316 // have to be handled through the AddHttpHandler interface. 316 {
317// if (!AddAgentHandler(Rest.Name,this)) 317 Rest.Log.ErrorFormat("{0} Unable to activate handler interface", MsgId);
318// { 318 foreach (IRest handler in handlers)
319// Rest.Log.ErrorFormat("{0} Unable to activate handler interface", MsgId); 319 {
320// foreach (IRest handler in handlers) 320 handler.Close();
321// { 321 }
322// handler.Close(); 322 }
323// }
324// }
325 323
326 } 324 }
327 catch (Exception e) 325 catch (Exception e)
@@ -344,13 +342,11 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
344 { 342 {
345 Rest.Log.InfoFormat("{0} Plugin is terminating", MsgId); 343 Rest.Log.InfoFormat("{0} Plugin is terminating", MsgId);
346 344
347 // FIXME: If this code is ever to be re-enabled (most of it is disabled already) then this will 345 try
348 // have to be handled through the AddHttpHandler interface. 346 {
349// try 347 RemoveAgentHandler(Rest.Name, this);
350// { 348 }
351// RemoveAgentHandler(Rest.Name, this); 349 catch (KeyNotFoundException){}
352// }
353// catch (KeyNotFoundException){}
354 350
355 foreach (IRest handler in handlers) 351 foreach (IRest handler in handlers)
356 { 352 {
diff --git a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
index a2425b5..eb16750 100644
--- a/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
+++ b/OpenSim/ApplicationPlugins/Rest/RestPlugin.cs
@@ -297,9 +297,7 @@ namespace OpenSim.ApplicationPlugins.Rest
297 { 297 {
298 if (!IsEnabled) return false; 298 if (!IsEnabled) return false;
299 _agents.Add(agentName, handler); 299 _agents.Add(agentName, handler);
300// return _httpd.AddAgentHandler(agentName, handler); 300 return _httpd.AddAgentHandler(agentName, handler);
301
302 return false;
303 } 301 }
304 302
305 /// <summary> 303 /// <summary>
@@ -318,7 +316,7 @@ namespace OpenSim.ApplicationPlugins.Rest
318 if (_agents[agentName] == handler) 316 if (_agents[agentName] == handler)
319 { 317 {
320 _agents.Remove(agentName); 318 _agents.Remove(agentName);
321// return _httpd.RemoveAgentHandler(agentName, handler); 319 return _httpd.RemoveAgentHandler(agentName, handler);
322 } 320 }
323 return false; 321 return false;
324 } 322 }
@@ -360,10 +358,10 @@ namespace OpenSim.ApplicationPlugins.Rest
360 _httpd.RemoveStreamHandler(h.HttpMethod, h.Path); 358 _httpd.RemoveStreamHandler(h.HttpMethod, h.Path);
361 } 359 }
362 _handlers = null; 360 _handlers = null;
363// foreach (KeyValuePair<string, IHttpAgentHandler> h in _agents) 361 foreach (KeyValuePair<string, IHttpAgentHandler> h in _agents)
364// { 362 {
365// _httpd.RemoveAgentHandler(h.Key, h.Value); 363 _httpd.RemoveAgentHandler(h.Key, h.Value);
366// } 364 }
367 _agents = null; 365 _agents = null;
368 } 366 }
369 367