From a8901a40f4526720f68049706cabd34cf9717172 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Thu, 31 Dec 2009 09:25:16 -0800 Subject: Simulation handlers (agents & objects) completed. --- .../Simulation/SimulationServiceInConnector.cs | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'OpenSim/Server/Handlers/Simulation/SimulationServiceInConnector.cs') diff --git a/OpenSim/Server/Handlers/Simulation/SimulationServiceInConnector.cs b/OpenSim/Server/Handlers/Simulation/SimulationServiceInConnector.cs index fe93fa5..b2aa52f 100644 --- a/OpenSim/Server/Handlers/Simulation/SimulationServiceInConnector.cs +++ b/OpenSim/Server/Handlers/Simulation/SimulationServiceInConnector.cs @@ -47,13 +47,6 @@ namespace OpenSim.Server.Handlers.Simulation if (serverConfig == null) throw new Exception("No section 'SimulationService' in config file"); - bool authentication = serverConfig.GetBoolean("RequireAuthentication", false); - - if (authentication) - m_AuthenticationService = scene.RequestModuleInterface(); - - bool foreignGuests = serverConfig.GetBoolean("AllowForeignGuests", false); - //string simService = serverConfig.GetString("LocalServiceModule", // String.Empty); @@ -69,12 +62,14 @@ namespace OpenSim.Server.Handlers.Simulation //System.Console.WriteLine("XXXXXXXXXXXXXXXXXXX m_AssetSetvice == null? " + ((m_AssetService == null) ? "yes" : "no")); - server.AddStreamHandler(new AgentGetHandler(m_SimulationService, m_AuthenticationService)); - server.AddStreamHandler(new AgentPostHandler(m_SimulationService, m_AuthenticationService, foreignGuests)); - server.AddStreamHandler(new AgentPutHandler(m_SimulationService, m_AuthenticationService)); - server.AddStreamHandler(new AgentDeleteHandler(m_SimulationService, m_AuthenticationService)); + //server.AddStreamHandler(new AgentGetHandler(m_SimulationService, m_AuthenticationService)); + //server.AddStreamHandler(new AgentPostHandler(m_SimulationService, m_AuthenticationService)); + //server.AddStreamHandler(new AgentPutHandler(m_SimulationService, m_AuthenticationService)); + //server.AddStreamHandler(new AgentDeleteHandler(m_SimulationService, m_AuthenticationService)); + server.AddHTTPHandler("/agent/", new AgentHandler(m_SimulationService).Handler); + server.AddHTTPHandler("/object/", new ObjectHandler(m_SimulationService).Handler); + //server.AddStreamHandler(new ObjectPostHandler(m_SimulationService, authentication)); - //server.AddStreamHandler(new NeighborPostHandler(m_SimulationService, authentication)); } } } -- cgit v1.1