C# Класс BlogEngine.Core.Web.HttpModules.UrlRewrite

Handles pretty URL's and redirects them to the permalinks.
Наследование: IHttpModule
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Dispose() публичный Метод

Disposes of the resources (other than memory) used by the module that implements T:System.Web.IHttpModule.
public Dispose ( ) : void
Результат void

Init() публичный Метод

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
Результат void