using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.IO;
namespace Everest.CmsServices.Web{
public class KoobooHttpResponseWrapper : HttpResponseWrapper
{
KoobooHttpContextWrapper _context;
public KoobooHttpResponseWrapper(HttpResponse httpResponse, KoobooHttpContextWrapper context)
: base(httpResponse)
{
_context = context;
}
//public override string ApplyAppPathModifier(string virtualPath)
//{
// string path = base.ApplyAppPathModifier(virtualPath);
// var koobooRequest = (KoobooHttpRequestWrapper)(_context.Request);
// if (koobooRequest.VisitType == CmsVisitType.HostNVirtual)
// {
// //without file extension
// if (string.IsNullOrEmpty(Path.GetExtension(path)))
// {
// var stripedVirtualPath = path.Replace(koobooRequest.ApplicationPath, "");
// return _context.Request.ApplicationPath + "/" + koobooRequest.CmsApplicationVirtualPath + stripedVirtualPath;
// }
// }
// return path;
//}
}
}
|