31 using System.Reflection;
35 using System.Text.RegularExpressions;
37 using System.Xml.Serialization;
38 using OpenSim.Server.Base;
39 using OpenSim.Services.Interfaces;
40 using OpenSim.Framework;
41 using OpenSim.Framework.ServiceAuth;
42 using OpenSim.Framework.Servers.HttpServer;
45 namespace OpenSim.Server.Handlers.
Asset
54 base(
"POST",
"/get_assets_exist")
56 m_AssetService = service;
60 base(
"POST",
"/get_assets_exist", auth)
62 m_AssetService = service;
72 xs =
new XmlSerializer(typeof(
string[]));
73 ids = (
string[])xs.Deserialize(request);
77 httpResponse.StatusCode = (int)HttpStatusCode.BadRequest;
81 bool[] exist = m_AssetService.AssetsExist(ids);
83 xs =
new XmlSerializer(typeof(
bool[]));
84 return ServerUtils.SerializeResult(xs, exist);
Base streamed request handler.
AssetsExistHandler(IAssetService service)
AssetsExistHandler(IAssetService service, IServiceAuth auth)
override byte[] ProcessRequest(string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse)