C# Class BlogEngine.Core.Web.HttpHandlers.Foaf

Based on John Dyer's (http://johndyer.name/) extension.
Inheritance: IHttpHandler
Show file Open project: rasmuskl/ReSharperCourse

Private Properties

Property Type Description
CalculateSha1 string
CloseWriter void
GetWriter System.Xml.XmlWriter
WriteFoaf void
WriteFoafPerson void

Public Methods

Method Description
ProcessRequest ( HttpContext context ) : void

Enables processing of HTTP Web requests by a custom HttpHandler that implements the interface.

Private Methods

Method Description
CalculateSha1 ( string text, Encoding enc ) : string

Calculates the SHA1.

CloseWriter ( XmlWriter xmlWriter ) : void

Closes up the FOAF document

GetWriter ( Stream stream ) : XmlWriter

Creates the necessary startup information for the FOAF document

WriteFoaf ( HttpContext context, string name ) : void

Writes the FOAF.

WriteFoafPerson ( XmlWriter writer, FoafPerson person ) : void

Write a FOAF:Person and any friends to the output stream

Method Details

ProcessRequest() public method

Enables processing of HTTP Web requests by a custom HttpHandler that implements the interface.
public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext /// An object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests. ///
return void