BlogEngine.NET Architecture and source Code Analysis series PART13: Implementation Analysis (i)

Source: Internet
Author: User

HttpHandlers and HttpModules

This is the 13th of the series, in fact, so far you should have a certain grasp of the overall design of blogengine.net, the partial realization of the details have a more profound understanding, in reading BlogEngine.NET hope to adhere to the last, and hold the macro, in-depth to micro. In this article, we will introduce the httphandlers and httpmodules in BlogEngine.NET, explain the functions they want to implement and how to use them, and make a detailed analysis of some httphandler or httpmodule that are necessary.

HttpHandler and HttpModule

For HttpHandler and HttpModule I do not want to say more, because they explain the article is too much too much, we can look for in the blog Park directly input "HttpHandler and HttpModule" can be found. My understanding is a HttpHandler to implement IHttpHandler interface, mainly to a request for direct processing, a HttpModule to implement IHttpModule interface, The request and response are filtered primarily in the event of the HttpApplication lifecycle. They can all be configured in the Web.config file.

The HttpHandler in the BlogEngine.NET

The HttpHandler in the blogengine.net is in BlogEngine.Core.Web.HttpHandlers space (except for Metawebloghandler, which is not included here), and through web.config we can see their Mapping Relationship:

httphandlers Mapping Table


<add verb= "*" path= "File.axd" type= "BlogEngine.Core.Web.HttpHandlers.FileHandler" Blogengine.core "validate=" False "/>
<add verb= "*" path= "Image.axd" type= "BlogEngine.Core.Web.HttpHandlers.ImageHandler" Blogengine.core "validate=" False "/>
<add verb= "*" path= "Syndication.axd" type= "BlogEngine.Core.Web.HttpHandlers.SyndicationHandler, Blogengine.core "Validate= false"/>
<add verb= "*" path= "Sitemap.axd" type= "BlogEngine.Core.Web.HttpHandlers.SiteMap" Blogengine.core "validate=" False "/>
<add verb= "*" path= "Trackback.axd" type= "BlogEngine.Core.Web.HttpHandlers.TrackbackHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Pingback.axd" type= "BlogEngine.Core.Web.HttpHandlers.PingbackHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Opensearch.axd" type= "BlogEngine.Core.Web.HttpHandlers.OpenSearchHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Metaweblog.axd" type= "BlogEngine.Core.API.MetaWeblog.MetaWeblogHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Rsd.axd" type= "BlogEngine.Core.Web.HttpHandlers.RsdHandler", Blogengine.core "validate=" false "/>
<add verb= "*" path= "Css.axd" type= "BlogEngine.Core.Web.HttpHandlers.CssHandler", Blogengine.core "validate=" false "/>
<add verb= "*" path= "Js.axd" type= "BlogEngine.Core.Web.HttpHandlers.JavaScriptHandler, Blogengine.core" validate= "False"/>
<add verb= "*" path= "Rating.axd" type= "BlogEngine.Core.Web.HttpHandlers.RatingHandler, Blogengine.core" validate= "False"/>
<add verb= "*" path= "Opml.axd" type= "BlogEngine.Core.Web.HttpHandlers.OpmlHandler" Blogengine.core "validate=" False "/>
<add verb= "*" path= "Blogml.axd" type= "BlogEngine.Core.Web.HttpHandlers.BlogMLExportHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Sioc.axd" type= "BlogEngine.Core.Web.HttpHandlers.Sioc", Blogengine.core "validate=" false "/ >
<add verb= "*" path= "Apml.axd" type= "BLOGENGINE.CORE.WEB.HTTPHANDLERS.APML", Blogengine.core "validate=" false "/ >
<add verb= "*" path= "Foaf*.axd" type= "BlogEngine.Core.Web.HttpHandlers.Foaf", Blogengine.core "validate=" false "/ >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.