C# Class BlogEngine.Core.Web.HttpModules.UrlRewrite

Handles pretty URL's and redirects them to the permalinks.
Inheritance: IHttpModule
Show file Open project: rasmuskl/ReSharperCourse

Public Methods

Method Description
Dispose ( ) : void

Disposes of the resources (other than memory) used by the module that implements T:System.Web.IHttpModule.

Init ( System.Web.HttpApplication context ) : void

Initializes a module and prepares it to handle requests.

Private Methods

Method Description
ContextBeginRequest ( object sender, EventArgs e ) : void

Handles the BeginRequest event of the context control.

DefaultPageRequested ( HttpContext context ) : bool
ExtractDate ( HttpContext context, int &year, int &month, int &day ) : bool

Extracts the year and month from the requested URL and returns that as a DateTime.

ExtractTitle ( HttpContext context, string url ) : string

Extracts the title from the requested URL.

GetQueryString ( HttpContext context ) : string

Gets the query string from the requested URL.

GetUrlWithQueryString ( HttpContext context ) : string
RewriteBundlePathForChildBlog ( HttpContext context, string url ) : void
RewriteCategory ( HttpContext context, string url ) : void

Rewrites the category.

RewriteDefault ( HttpContext context ) : void

The rewrite default.

RewriteFilePath ( HttpContext context, string url ) : void

Rewrites the incoming file request to the actual handler

RewriteImagePath ( HttpContext context, string url ) : void

Rewrites the incoming image request to the actual handler

RewritePage ( HttpContext context, string url ) : void

Rewrites the page.

RewritePost ( HttpContext context, string url ) : void

Rewrites the post.

RewriteTag ( HttpContext context, string url ) : void

Rewrites the tag.

Method Details

Dispose() public method

Disposes of the resources (other than memory) used by the module that implements T:System.Web.IHttpModule.
public Dispose ( ) : void
return void

Init() public method

Initializes a module and prepares it to handle requests.
public Init ( System.Web.HttpApplication context ) : void
context System.Web.HttpApplication An that provides access to the methods, properties, and events common to all application objects within an ASP.NET application
return void