From 7a9c85526cb99495bdd436150679941ef021b782 Mon Sep 17 00:00:00 2001 From: diva Date: Sun, 14 Jun 2009 15:35:09 +0000 Subject: Pulled out HelloNeighbour into its own service, INeighbourService, which may get more functions as we go along. It's a very simple service and service connectors, and it served primarily to establish the design of services that dependent on Scenes and that must always have a local connector. More refactoring coming, as this showed how to do it right. --- OpenSim/Server/Handlers/Simulation/AgentHandlers.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Server/Handlers/Simulation/AgentHandlers.cs') diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs index c14ad99..8e4d7d0 100644 --- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs +++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs @@ -32,6 +32,7 @@ using System.Net; using System.Text; using OpenSim.Server.Base; +using OpenSim.Server.Handlers.Base; using OpenSim.Services.Interfaces; using OpenSim.Framework; using OpenSim.Framework.Servers.HttpServer; @@ -88,7 +89,7 @@ namespace OpenSim.Server.Handlers.Simulation UUID agentID; string action; ulong regionHandle; - if (!Utils.GetParams(path, out agentID, out regionHandle, out action)) + if (!RestHandlerUtils.GetParams(path, out agentID, out regionHandle, out action)) { m_log.InfoFormat("[AgentPostHandler]: Invalid parameters for agent message {0}", path); httpResponse.StatusCode = (int)HttpStatusCode.BadRequest; @@ -102,7 +103,7 @@ namespace OpenSim.Server.Handlers.Simulation // Authentication string authority = string.Empty; string authToken = string.Empty; - if (!Utils.GetAuthentication(httpRequest, out authority, out authToken)) + if (!RestHandlerUtils.GetAuthentication(httpRequest, out authority, out authToken)) { m_log.InfoFormat("[AgentPostHandler]: Authentication failed for agent message {0}", path); httpResponse.StatusCode = (int)HttpStatusCode.Unauthorized; -- cgit v1.1