using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Routing;
namespace Everest.CmsServices.Web{
public class KoobooRoute : Route
{
public KoobooRoute(string url, IRouteHandler routeHandler)
: base(url, routeHandler)
{
}
public KoobooRoute(string url, RouteValueDictionary defaults, IRouteHandler routeHandler)
: base(url, defaults, routeHandler)
{
}
public KoobooRoute(string url, RouteValueDictionary defaults, RouteValueDictionary constraints, IRouteHandler routeHandler)
:base(url,defaults,constraints,routeHandler)
{
}
public KoobooRoute(string url, RouteValueDictionary defaults, RouteValueDictionary constraints, RouteValueDictionary dataTokens, IRouteHandler routeHandler)
:base(url,defaults,constraints,dataTokens,routeHandler)
{
}
public override RouteData GetRouteData(System.Web.HttpContextBase httpContext)
{
string virtualPath = httpContext.Request.AppRelativeCurrentExecutionFilePath.Substring(2) + httpContext.Request.PathInfo;
//RouteValueDictionary values = this._parsedRoute.Match(virtualPath, this.Defaults);
return base.GetRouteData(httpContext);
}
protected override bool ProcessConstraint(System.Web.HttpContextBase httpContext, object constraint, string parameterName, RouteValueDictionary values, RouteDirection routeDirection)
{
return base.ProcessConstraint(httpContext, constraint, parameterName, values, routeDirection);
}
}
}
|