31 using System.Collections.Generic;
32 using System.Reflection;
36 using System.Text.RegularExpressions;
38 using System.Xml.Serialization;
39 using OpenSim.Server.Base;
40 using OpenSim.Services.Interfaces;
41 using OpenSim.Framework;
42 using OpenSim.Framework.Servers.HttpServer;
45 namespace OpenSim.Server.Handlers.Inventory
49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
54 base(
"PUT",
"/inventory")
56 m_InventoryService = service;
62 XmlSerializer xs =
new XmlSerializer(typeof (List<InventoryItemBase>));
63 List<InventoryItemBase> items = (List<InventoryItemBase>)xs.Deserialize(request);
66 string[] p = SplitParams(path);
70 UUID ownerID = UUID.Zero;
71 UUID.TryParse(p[0], out ownerID);
72 result = m_InventoryService.MoveItems(ownerID, items);
75 m_log.WarnFormat(
"[MOVEITEMS HANDLER]: ownerID not provided in request. Unable to serve.");
77 xs =
new XmlSerializer(typeof(
bool));
78 return ServerUtils.SerializeResult(xs, result);
Base streamed request handler.
InventoryServerMoveItemsHandler(IInventoryService service)
override byte[] ProcessRequest(string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)