C# Class Subtext.Framework.Web.Handlers.RsdHandler

HttpHandler for rendering the Really Simple Syndication (RSD) Format.
The specs for RSD can be found here. http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
Inheritance: Subtext.Extensibility.Web.BaseHttpHandler
Afficher le fichier Open project: ayende/Subtext Class Usage Examples

Méthodes publiques

Méthode Description
HandleRequest ( HttpContext context ) : void

Handles the request. This is where you put your business logic.

This method should result in a call to one (or more) of the following methods:

context.Response.BinaryWrite();

context.Response.Write();

context.Response.WriteFile();

someStream.Save(context.Response.OutputStream);

etc...

If you want a download box to show up with a pre-populated filename, add this call here (supplying a real filename).

Response.AddHeader("Content-Disposition" , "attachment; filename=\"" + Filename + "\"");

ValidateParameters ( HttpContext context ) : bool

Validates the parameters. Inheriting classes must implement this and return true if the parameters are valid, otherwise false.

WriteRsd ( XmlWriter writer, BlogInfo blog ) : void

Writes the RSD for the specified blog into the XmlWriter.

Method Details

HandleRequest() public méthode

Handles the request. This is where you put your business logic.

This method should result in a call to one (or more) of the following methods:

context.Response.BinaryWrite();

context.Response.Write();

context.Response.WriteFile();

someStream.Save(context.Response.OutputStream);

etc...

If you want a download box to show up with a pre-populated filename, add this call here (supplying a real filename).

Response.AddHeader("Content-Disposition" , "attachment; filename=\"" + Filename + "\"");

public HandleRequest ( HttpContext context ) : void
context System.Web.HttpContext Context.
Résultat void

ValidateParameters() public méthode

Validates the parameters. Inheriting classes must implement this and return true if the parameters are valid, otherwise false.
public ValidateParameters ( HttpContext context ) : bool
context System.Web.HttpContext Context.
Résultat bool

WriteRsd() public méthode

Writes the RSD for the specified blog into the XmlWriter.
public WriteRsd ( XmlWriter writer, BlogInfo blog ) : void
writer System.Xml.XmlWriter
blog BlogInfo
Résultat void