C# Class Subtext.BlogML.BlogMLHttpHandler

Inheritance: Subtext.Extensibility.Web.BaseHttpHandler
Show file Open project: ayende/Subtext Class Usage Examples

Public Methods

Method Description
HandleRequest ( HttpContext context ) : void

Http handler used to export BlogML.

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.

Private Methods

Method Description
WriteBlogML ( Stream outStream ) : void

Method Details

HandleRequest() public method

Http handler used to export BlogML.

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.
return void

ValidateParameters() public method

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.
return bool