cleanup: fixing CamelCase issue with RestDeserialiseHandler.

0.6.0-stable
Dr Scofield 2008-07-15 13:33:31 +00:00
parent 8b933e53c0
commit 00c15eb0c4
2 changed files with 11 additions and 11 deletions

View File

@ -34,12 +34,12 @@ namespace OpenSim.Framework.Servers
{ {
public delegate TResponse RestDeserialiseMethod<TRequest, TResponse>(TRequest request); public delegate TResponse RestDeserialiseMethod<TRequest, TResponse>(TRequest request);
public class RestDeserialisehandler<TRequest, TResponse> : BaseRequestHandler, IStreamHandler public class RestDeserialiseHandler<TRequest, TResponse> : BaseRequestHandler, IStreamHandler
where TRequest : new() where TRequest : new()
{ {
private RestDeserialiseMethod<TRequest, TResponse> m_method; private RestDeserialiseMethod<TRequest, TResponse> m_method;
public RestDeserialisehandler(string httpMethod, string path, RestDeserialiseMethod<TRequest, TResponse> method) public RestDeserialiseHandler(string httpMethod, string path, RestDeserialiseMethod<TRequest, TResponse> method)
: base(httpMethod, path) : base(httpMethod, path)
{ {
m_method = method; m_method = method;

View File

@ -85,35 +85,35 @@ namespace OpenSim.Grid.InventoryServer
protected void AddHttpHandlers() protected void AddHttpHandlers()
{ {
m_httpServer.AddStreamHandler( m_httpServer.AddStreamHandler(
new RestDeserialisehandler<Guid, InventoryCollection>( new RestDeserialiseHandler<Guid, InventoryCollection>(
"POST", "/GetInventory/", m_inventoryService.GetUserInventory)); "POST", "/GetInventory/", m_inventoryService.GetUserInventory));
m_httpServer.AddStreamHandler( m_httpServer.AddStreamHandler(
new RestDeserialisehandler<Guid, bool>( new RestDeserialiseHandler<Guid, bool>(
"POST", "/CreateInventory/", m_inventoryService.CreateUsersInventory)); "POST", "/CreateInventory/", m_inventoryService.CreateUsersInventory));
m_httpServer.AddStreamHandler( m_httpServer.AddStreamHandler(
new RestDeserialisehandler<InventoryFolderBase, bool>( new RestDeserialiseHandler<InventoryFolderBase, bool>(
"POST", "/NewFolder/", m_inventoryService.AddFolder)); "POST", "/NewFolder/", m_inventoryService.AddFolder));
m_httpServer.AddStreamHandler( m_httpServer.AddStreamHandler(
new RestDeserialisehandler<InventoryFolderBase, bool>( new RestDeserialiseHandler<InventoryFolderBase, bool>(
"POST", "/UpdateFolder/", m_inventoryService.UpdateFolder)); "POST", "/UpdateFolder/", m_inventoryService.UpdateFolder));
m_httpServer.AddStreamHandler( m_httpServer.AddStreamHandler(
new RestDeserialisehandler<InventoryFolderBase, bool>( new RestDeserialiseHandler<InventoryFolderBase, bool>(
"POST", "/MoveFolder/", m_inventoryService.MoveFolder)); "POST", "/MoveFolder/", m_inventoryService.MoveFolder));
m_httpServer.AddStreamHandler( m_httpServer.AddStreamHandler(
new RestDeserialisehandler<InventoryFolderBase, bool>( new RestDeserialiseHandler<InventoryFolderBase, bool>(
"POST", "/PurgeFolder/", m_inventoryService.PurgeFolder)); "POST", "/PurgeFolder/", m_inventoryService.PurgeFolder));
m_httpServer.AddStreamHandler( m_httpServer.AddStreamHandler(
new RestDeserialisehandler<InventoryItemBase, bool>( new RestDeserialiseHandler<InventoryItemBase, bool>(
"POST", "/NewItem/", m_inventoryService.AddItem)); "POST", "/NewItem/", m_inventoryService.AddItem));
m_httpServer.AddStreamHandler( m_httpServer.AddStreamHandler(
new RestDeserialisehandler<InventoryItemBase, bool>( new RestDeserialiseHandler<InventoryItemBase, bool>(
"POST", "/DeleteItem/", m_inventoryService.DeleteItem)); "POST", "/DeleteItem/", m_inventoryService.DeleteItem));
// WARNING: Root folders no longer just delivers the root and immediate child folders (e.g // WARNING: Root folders no longer just delivers the root and immediate child folders (e.g
@ -122,7 +122,7 @@ namespace OpenSim.Grid.InventoryServer
// (e.g. any http request not found is automatically treated as an xmlrpc request) make it easier // (e.g. any http request not found is automatically treated as an xmlrpc request) make it easier
// to do this for now. // to do this for now.
m_httpServer.AddStreamHandler( m_httpServer.AddStreamHandler(
new RestDeserialisehandler<Guid, List<InventoryFolderBase>> new RestDeserialiseHandler<Guid, List<InventoryFolderBase>>
("POST", "/RootFolders/", m_inventoryService.GetInventorySkeleton)); ("POST", "/RootFolders/", m_inventoryService.GetInventorySkeleton));
} }