diff options
author | Justin Clarke Casey | 2009-01-06 14:44:45 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-01-06 14:44:45 +0000 |
commit | fde6a1665cf052194c7480be01048bb4bb549d7e (patch) | |
tree | 876b961fc82e750adacea91f45f00c7ced20222a /OpenSim/Region/Environment/Modules | |
parent | * refactor: call AddStreamHandler() directly via CommsManager (diff) | |
download | opensim-SC-fde6a1665cf052194c7480be01048bb4bb549d7e.zip opensim-SC-fde6a1665cf052194c7480be01048bb4bb549d7e.tar.gz opensim-SC-fde6a1665cf052194c7480be01048bb4bb549d7e.tar.bz2 opensim-SC-fde6a1665cf052194c7480be01048bb4bb549d7e.tar.xz |
* refactor: call AddHttpHandler() directly via CommsManager
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
3 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs b/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs index 4daaab4..7a0bb9b 100644 --- a/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs +++ b/OpenSim/Region/Environment/Modules/Communications/REST/RESTInterregionComms.cs | |||
@@ -121,7 +121,7 @@ namespace OpenSim.Region.Environment.Modules.Communications.REST | |||
121 | 121 | ||
122 | protected virtual void AddHTTPHandlers() | 122 | protected virtual void AddHTTPHandlers() |
123 | { | 123 | { |
124 | m_aScene.AddHTTPHandler("/agent/", AgentHandler); | 124 | m_aScene.CommsManager.HttpServer.AddHTTPHandler("/agent/", AgentHandler); |
125 | } | 125 | } |
126 | 126 | ||
127 | #endregion /* IRegionModule */ | 127 | #endregion /* IRegionModule */ |
diff --git a/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueGetModule.cs index 2a04348..9006fe0 100644 --- a/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueGetModule.cs +++ b/OpenSim/Region/Environment/Modules/Framework/EventQueue/EventQueueGetModule.cs | |||
@@ -233,7 +233,7 @@ namespace OpenSim.Region.Environment.Modules.Framework.EventQueue | |||
233 | foreach (UUID ky in removeitems) | 233 | foreach (UUID ky in removeitems) |
234 | { | 234 | { |
235 | m_AvatarQueueUUIDMapping.Remove(ky); | 235 | m_AvatarQueueUUIDMapping.Remove(ky); |
236 | m_scene.RemoveHTTPHandler("","/CAPS/EQG/" + ky.ToString() + "/"); | 236 | m_scene.CommsManager.HttpServer.RemoveHTTPHandler("","/CAPS/EQG/" + ky.ToString() + "/"); |
237 | m_log.Debug("[EVENTQUEUE]: Removing " + "/CAPS/EQG/" + ky.ToString() + "/"); | 237 | m_log.Debug("[EVENTQUEUE]: Removing " + "/CAPS/EQG/" + ky.ToString() + "/"); |
238 | } | 238 | } |
239 | 239 | ||
@@ -328,7 +328,8 @@ namespace OpenSim.Region.Environment.Modules.Framework.EventQueue | |||
328 | })); | 328 | })); |
329 | 329 | ||
330 | // This will persist this beyond the expiry of the caps handlers | 330 | // This will persist this beyond the expiry of the caps handlers |
331 | m_scene.AddHTTPHandler(capsBase + EventQueueGetUUID.ToString() + "/", EventQueuePath2); | 331 | m_scene.CommsManager.HttpServer.AddHTTPHandler( |
332 | capsBase + EventQueueGetUUID.ToString() + "/", EventQueuePath2); | ||
332 | 333 | ||
333 | Random rnd = new Random(System.Environment.TickCount); | 334 | Random rnd = new Random(System.Environment.TickCount); |
334 | lock (m_ids) | 335 | lock (m_ids) |
diff --git a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs index dd2fb49..6ce82ad 100644 --- a/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs +++ b/OpenSim/Region/Environment/Modules/World/WorldMap/WorldMapModule.cs | |||
@@ -124,7 +124,7 @@ namespace OpenSim.Region.Environment.Modules.World.WorldMap | |||
124 | regionimage = regionimage.Replace("-", ""); | 124 | regionimage = regionimage.Replace("-", ""); |
125 | m_log.Warn("[WORLD MAP]: JPEG Map location: http://" + m_scene.RegionInfo.ExternalEndPoint.Address.ToString() + ":" + m_scene.RegionInfo.HttpPort.ToString() + "/index.php?method=" + regionimage); | 125 | m_log.Warn("[WORLD MAP]: JPEG Map location: http://" + m_scene.RegionInfo.ExternalEndPoint.Address.ToString() + ":" + m_scene.RegionInfo.HttpPort.ToString() + "/index.php?method=" + regionimage); |
126 | 126 | ||
127 | m_scene.AddHTTPHandler(regionimage, OnHTTPGetMapImage); | 127 | m_scene.CommsManager.HttpServer.AddHTTPHandler(regionimage, OnHTTPGetMapImage); |
128 | m_scene.CommsManager.HttpServer.AddLLSDHandler( | 128 | m_scene.CommsManager.HttpServer.AddLLSDHandler( |
129 | "/MAP/MapItems/" + m_scene.RegionInfo.RegionHandle.ToString(), HandleRemoteMapItemRequest); | 129 | "/MAP/MapItems/" + m_scene.RegionInfo.RegionHandle.ToString(), HandleRemoteMapItemRequest); |
130 | 130 | ||