diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Handlers/Grid/GridInfoServerInConnector.cs (renamed from OpenSim/Grid/MessagingServer.Modules/UserPresenceData.cs) | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/OpenSim/Grid/MessagingServer.Modules/UserPresenceData.cs b/OpenSim/Server/Handlers/Grid/GridInfoServerInConnector.cs index 7d4e45c..c9e80d9 100644 --- a/OpenSim/Grid/MessagingServer.Modules/UserPresenceData.cs +++ b/OpenSim/Server/Handlers/Grid/GridInfoServerInConnector.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -27,24 +27,29 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | ||
31 | using log4net; | ||
30 | using OpenMetaverse; | 32 | using OpenMetaverse; |
31 | using OpenSim.Data; | 33 | using Nini.Config; |
32 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Servers.HttpServer; | ||
36 | using OpenSim.Server.Handlers.Base; | ||
33 | 37 | ||
34 | namespace OpenSim.Grid.MessagingServer | 38 | namespace OpenSim.Server.Handlers.Grid |
35 | { | 39 | { |
36 | public class UserPresenceData | 40 | public class GridInfoServerInConnector : ServiceConnector |
37 | { | 41 | { |
38 | public AgentCircuitData agentData = new AgentCircuitData(); | 42 | private string m_ConfigName = "GridInfoService"; |
39 | public RegionProfileData regionData = new RegionProfileData(); | ||
40 | public string httpURI = String.Empty; | ||
41 | public Dictionary<UUID, FriendListItem> friendData = new Dictionary<UUID,FriendListItem>(); | ||
42 | public List<UUID> subscriptionData = new List<UUID>(); | ||
43 | public bool OnlineYN = true; | ||
44 | public bool lookupUserRegionYN = true; | ||
45 | 43 | ||
46 | public UserPresenceData() | 44 | public GridInfoServerInConnector(IConfigSource config, IHttpServer server, string configName) : |
45 | base(config, server, configName) | ||
47 | { | 46 | { |
47 | GridInfoHandlers handlers = new GridInfoHandlers(config); | ||
48 | |||
49 | server.AddStreamHandler(new RestStreamHandler("GET", "/get_grid_info", | ||
50 | handlers.RestGetGridInfoMethod)); | ||
51 | server.AddXmlRPCHandler("get_grid_info", handlers.XmlRpcGridInfoMethod); | ||
48 | } | 52 | } |
53 | |||
49 | } | 54 | } |
50 | } | 55 | } |