C# Class Subtext.Framework.UrlManager.UrlReWriteHandlerFactory

Class responisble for figuring out which Subtext page to load. By default will load an array of Subtext.UrlManager.HttpHandlder from the blog.config file. This contains a list of Regex patterns to match the current request to. It also allows caching of the Regex's and Types.
Inheritance: IHttpHandlerFactory
显示文件 Open project: ayende/Subtext

Private Properties

Property Type Description
GetHandlerForUrl IHttpHandler
ProcessHandlerTypeDirectory IHttpHandler
ProcessHandlerTypePage IHttpHandler

Public Methods

Method Description
GetHandler ( HttpContext context, string requestType, string url, string path ) : IHttpHandler

Implementation of IHttpHandlerFactory. By default, it will load an array of HttpHandlers from the blog.config. This can be changed, by overrideing the GetHttpHandlers(HttpContext context) method.

ReleaseHandler ( IHttpHandler handler ) : void

Releases the handler.

Protected Methods

Method Description
GetHttpHandlers ( ) : Subtext.Framework.UrlManager.HttpHandler[]

Private Methods

Method Description
GetHandlerForUrl ( string url ) : IHttpHandler
ProcessHandlerTypeDirectory ( HttpContext context, string url ) : IHttpHandler
ProcessHandlerTypePage ( HttpHandler item, HttpContext context ) : IHttpHandler

Method Details

GetHandler() public method

Implementation of IHttpHandlerFactory. By default, it will load an array of HttpHandlers from the blog.config. This can be changed, by overrideing the GetHttpHandlers(HttpContext context) method.
public GetHandler ( HttpContext context, string requestType, string url, string path ) : IHttpHandler
context System.Web.HttpContext Current HttpContext
requestType string Request Type (Passed along to other IHttpHandlerFactory's)
url string The current requested url. (Passed along to other IHttpHandlerFactory's)
path string The physical path of the current request. Is not guaranteed /// to exist (Passed along to other IHttpHandlerFactory's)
return IHttpHandler

GetHttpHandlers() protected method

protected GetHttpHandlers ( ) : Subtext.Framework.UrlManager.HttpHandler[]
return Subtext.Framework.UrlManager.HttpHandler[]

ReleaseHandler() public method

Releases the handler.
public ReleaseHandler ( IHttpHandler handler ) : void
handler IHttpHandler Handler.
return void