diff options
author | lbsa71 | 2007-07-04 14:12:32 +0000 |
---|---|---|
committer | lbsa71 | 2007-07-04 14:12:32 +0000 |
commit | 6a2588454a1ac4bb484ad0b9ee648e9ac156f8db (patch) | |
tree | fd4e0d33f65e36365d15d991f95d323e6d15e8b1 /OpenSim/Grid/GridServer | |
parent | * Added StreamHandler support (diff) | |
download | opensim-SC_OLD-6a2588454a1ac4bb484ad0b9ee648e9ac156f8db.zip opensim-SC_OLD-6a2588454a1ac4bb484ad0b9ee648e9ac156f8db.tar.gz opensim-SC_OLD-6a2588454a1ac4bb484ad0b9ee648e9ac156f8db.tar.bz2 opensim-SC_OLD-6a2588454a1ac4bb484ad0b9ee648e9ac156f8db.tar.xz |
* Removed AssetHttpServer, using BaseHttpServer instead
* Removed legacy REST handling
* Created two custom IStreamHandlers for asset up/download
* Removed quite a lot of double and triple encodings, trying to work towards binary only and direct write into storage.
* Introduced BaseStreamHandler with GetParam() and some other goodies
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 | ||