diff options
Diffstat (limited to 'OpenSim/Grid/GridServer')
-rw-r--r-- | OpenSim/Grid/GridServer/Main.cs | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/OpenSim/Grid/GridServer/Main.cs b/OpenSim/Grid/GridServer/Main.cs index 2e76cee..a990ff7 100644 --- a/OpenSim/Grid/GridServer/Main.cs +++ b/OpenSim/Grid/GridServer/Main.cs | |||
@@ -127,25 +127,16 @@ namespace OpenSim.Grid.GridServer | |||
127 | httpServer.AddXmlRPCHandler("simulator_login", m_gridManager.XmlRpcSimulatorLoginMethod); | 127 | httpServer.AddXmlRPCHandler("simulator_login", m_gridManager.XmlRpcSimulatorLoginMethod); |
128 | httpServer.AddXmlRPCHandler("map_block", m_gridManager.XmlRpcMapBlockMethod); | 128 | httpServer.AddXmlRPCHandler("map_block", m_gridManager.XmlRpcMapBlockMethod); |
129 | 129 | ||
130 | httpServer.AddRestHandler("GET", "/sims/", m_gridManager.RestGetSimMethod); | 130 | httpServer.AddStreamHandler(new RestStreamHandler("GET", "/sims/", m_gridManager.RestGetSimMethod )); |
131 | httpServer.AddRestHandler("POST", "/sims/", m_gridManager.RestSetSimMethod); | 131 | httpServer.AddStreamHandler(new RestStreamHandler("POST", "/sims/", m_gridManager.RestSetSimMethod )); |
132 | httpServer.AddRestHandler("GET", "/regions/", m_gridManager.RestGetRegionMethod); | 132 | |
133 | httpServer.AddRestHandler("POST", "/regions/", m_gridManager.RestSetRegionMethod); | 133 | httpServer.AddStreamHandler( new RestStreamHandler("GET", "/regions/", m_gridManager.RestGetRegionMethod )); |
134 | 134 | httpServer.AddStreamHandler( new RestStreamHandler("POST","/regions/", m_gridManager.RestSetRegionMethod )); | |
135 | 135 | ||
136 | // lbsa71 : This code snippet taken from old http server. | 136 | //httpServer.AddRestHandler("GET", "/sims/", m_gridManager.RestGetSimMethod); |
137 | // I have no idea what this was supposed to do - looks like an infinite recursion to me. | 137 | //httpServer.AddRestHandler("POST", "/sims/", m_gridManager.RestSetSimMethod); |
138 | // case "regions": | 138 | //httpServer.AddRestHandler("GET", "/regions/", m_gridManager.RestGetRegionMethod); |
139 | //// DIRTY HACK ALERT | 139 | //httpServer.AddRestHandler("POST", "/regions/", m_gridManager.RestSetRegionMethod); |
140 | //Console.Notice("/regions/ accessed"); | ||
141 | //TheSim = OpenGrid_Main.thegrid._regionmanager.GetProfileByHandle((ulong)Convert.ToUInt64(rest_params[1])); | ||
142 | //respstring = ParseREST("/regions/" + rest_params[1], requestBody, HTTPmethod); | ||
143 | //break; | ||
144 | |||
145 | // lbsa71 : I guess these were never used? | ||
146 | //Listener.Prefixes.Add("http://+:8001/gods/"); | ||
147 | //Listener.Prefixes.Add("http://+:8001/highestuuid/"); | ||
148 | //Listener.Prefixes.Add("http://+:8001/uuidblocks/"); | ||
149 | 140 | ||
150 | httpServer.Start(); | 141 | httpServer.Start(); |
151 | 142 | ||