aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/InventoryServer/Main.cs
diff options
context:
space:
mode:
authorTeravus Ovares2007-12-14 07:55:33 +0000
committerTeravus Ovares2007-12-14 07:55:33 +0000
commit79935881aa4ac16990625360b256aa5eebe12ce7 (patch)
tree2059842c03a6b7ae36692e530c18fb1d9956ba40 /OpenSim/Grid/InventoryServer/Main.cs
parentAdded copyright notice. (diff)
downloadopensim-SC-79935881aa4ac16990625360b256aa5eebe12ce7.zip
opensim-SC-79935881aa4ac16990625360b256aa5eebe12ce7.tar.gz
opensim-SC-79935881aa4ac16990625360b256aa5eebe12ce7.tar.bz2
opensim-SC-79935881aa4ac16990625360b256aa5eebe12ce7.tar.xz
* Patch from Justincc that swaps out LLUUIDs for Guid on the inventory REST calls
Diffstat (limited to 'OpenSim/Grid/InventoryServer/Main.cs')
-rw-r--r--OpenSim/Grid/InventoryServer/Main.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Grid/InventoryServer/Main.cs b/OpenSim/Grid/InventoryServer/Main.cs
index 611e0c7..58b63f4 100644
--- a/OpenSim/Grid/InventoryServer/Main.cs
+++ b/OpenSim/Grid/InventoryServer/Main.cs
@@ -78,10 +78,10 @@ namespace OpenSim.Grid.InventoryServer
78 MainLog.Instance.Notice(LogName, "Starting HTTP server ..."); 78 MainLog.Instance.Notice(LogName, "Starting HTTP server ...");
79 BaseHttpServer httpServer = new BaseHttpServer(m_config.HttpPort); 79 BaseHttpServer httpServer = new BaseHttpServer(m_config.HttpPort);
80 httpServer.AddStreamHandler( 80 httpServer.AddStreamHandler(
81 new RestDeserialisehandler<LLUUID, InventoryCollection>("POST", "/GetInventory/", 81 new RestDeserialisehandler<Guid, InventoryCollection>("POST", "/GetInventory/",
82 m_inventoryService.GetUserInventory)); 82 m_inventoryService.GetUserInventory));
83 httpServer.AddStreamHandler( 83 httpServer.AddStreamHandler(
84 new RestDeserialisehandler<LLUUID, bool>("POST", "/CreateInventory/", 84 new RestDeserialisehandler<Guid, bool>("POST", "/CreateInventory/",
85 m_inventoryService.CreateUsersInventory)); 85 m_inventoryService.CreateUsersInventory));
86 httpServer.AddStreamHandler( 86 httpServer.AddStreamHandler(
87 new RestDeserialisehandler<InventoryFolderBase, bool>("POST", "/NewFolder/", 87 new RestDeserialisehandler<InventoryFolderBase, bool>("POST", "/NewFolder/",
@@ -95,7 +95,7 @@ namespace OpenSim.Grid.InventoryServer
95 m_inventoryService.DeleteInvItem)); 95 m_inventoryService.DeleteInvItem));
96 96
97 httpServer.AddStreamHandler( 97 httpServer.AddStreamHandler(
98 new RestDeserialisehandler<LLUUID, List<InventoryFolderBase>>("POST", "/RootFolders/", 98 new RestDeserialisehandler<Guid, List<InventoryFolderBase>>("POST", "/RootFolders/",
99 m_inventoryService.RequestFirstLevelFolders)); 99 m_inventoryService.RequestFirstLevelFolders));
100 100
101 // httpServer.AddStreamHandler(new InventoryManager.GetInventory(m_inventoryManager)); 101 // httpServer.AddStreamHandler(new InventoryManager.GetInventory(m_inventoryManager));
@@ -120,7 +120,7 @@ namespace OpenSim.Grid.InventoryServer
120 { 120 {
121 case "quit": 121 case "quit":
122 case "add-user": 122 case "add-user":
123 m_inventoryService.CreateUsersInventory(LLUUID.Random()); 123 m_inventoryService.CreateUsersInventory(LLUUID.Random().UUID);
124 break; 124 break;
125 case "shutdown": 125 case "shutdown":
126 m_console.Close(); 126 m_console.Close();