aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/InventoryServer/Main.cs
diff options
context:
space:
mode:
authorMW2008-12-02 11:15:08 +0000
committerMW2008-12-02 11:15:08 +0000
commitb62b9af6b00100a5932191a0250b5ade3b52f436 (patch)
tree77f031dad5d58593f6709f50b52b2face483dd97 /OpenSim/Grid/InventoryServer/Main.cs
parentCatch all possible exceptions in the mysql module. It throws non-mysql (diff)
downloadopensim-SC_OLD-b62b9af6b00100a5932191a0250b5ade3b52f436.zip
opensim-SC_OLD-b62b9af6b00100a5932191a0250b5ade3b52f436.tar.gz
opensim-SC_OLD-b62b9af6b00100a5932191a0250b5ade3b52f436.tar.bz2
opensim-SC_OLD-b62b9af6b00100a5932191a0250b5ade3b52f436.tar.xz
Added two new "trusted" url handlers to the Inventory server, to allow the user server to get a list of items in a folder and add a new item.
Diffstat (limited to 'OpenSim/Grid/InventoryServer/Main.cs')
-rw-r--r--OpenSim/Grid/InventoryServer/Main.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Grid/InventoryServer/Main.cs b/OpenSim/Grid/InventoryServer/Main.cs
index 8be6a23..81a6a03 100644
--- a/OpenSim/Grid/InventoryServer/Main.cs
+++ b/OpenSim/Grid/InventoryServer/Main.cs
@@ -110,6 +110,14 @@ namespace OpenSim.Grid.InventoryServer
110 "POST", "/NewItem/", m_inventoryService.AddItem, m_inventoryService.CheckAuthSession)); 110 "POST", "/NewItem/", m_inventoryService.AddItem, m_inventoryService.CheckAuthSession));
111 111
112 m_httpServer.AddStreamHandler( 112 m_httpServer.AddStreamHandler(
113 new RestDeserialiseTrustedHandler<Guid, List<InventoryItemBase>>(
114 "POST", "/GetItems/", m_inventoryService.GetFolderItems, m_inventoryService.CheckTrustSource));
115
116 m_httpServer.AddStreamHandler(
117 new RestDeserialiseTrustedHandler<InventoryItemBase, bool>(
118 "POST", "/AddNewItem/", m_inventoryService.AddItem, m_inventoryService.CheckTrustSource));
119
120 m_httpServer.AddStreamHandler(
113 new RestDeserialiseSecureHandler<InventoryItemBase, bool>( 121 new RestDeserialiseSecureHandler<InventoryItemBase, bool>(
114 "POST", "/DeleteItem/", m_inventoryService.DeleteItem, m_inventoryService.CheckAuthSession)); 122 "POST", "/DeleteItem/", m_inventoryService.DeleteItem, m_inventoryService.CheckAuthSession));
115 123