C# Class BlogEngine.Core.API.MetaWeblog.MetaWeblogHandler

HTTP Handler for MetaWeblog API
Inheritance: IHttpHandler
Show file Open project: rasmuskl/ReSharperCourse

Public Methods

Method Description
ProcessRequest ( HttpContext context ) : void

Process the HTTP Request. Create XMLRPC request, find method call, process it and create response object and sent it back. This is the heart of the MetaWeblog API

Private Methods

Method Description
DeletePage ( string blogId, string pageId, string userName, string password ) : bool

Deletes the page.

DeletePost ( string appKey, string postId, string userName, string password, bool publish ) : bool

blogger.deletePost method

EditPage ( string blogId, string pageId, string userName, string password, BlogEngine.Core.API.MetaWeblog.MWAPage mwaPage, bool publish ) : bool

Edits the page.

EditPost ( string postId, string userName, string password, BlogEngine.Core.API.MetaWeblog.MWAPost sentPost, bool publish ) : bool

metaWeblog.editPost method

GetAuthors ( string blogId, string userName, string password ) : List

Gets authors.

GetCategories ( string blogId, string userName, string password, string rootUrl ) : List

metaWeblog.getCategories method

GetKeywords ( string blogId, string userName, string password ) : List

wp.getTags method

GetPage ( string blogId, string pageId, string userName, string password ) : BlogEngine.Core.API.MetaWeblog.MWAPage

wp.getPage method

GetPages ( string blogId, string userName, string password ) : List

wp.getPages method

GetPost ( string postId, string userName, string password ) : BlogEngine.Core.API.MetaWeblog.MWAPost

metaWeblog.getPost method

GetRecentPosts ( string blogId, string userName, string password, int numberOfPosts ) : List

metaWeblog.getRecentPosts method

GetUserBlogs ( string appKey, string userName, string password, string rootUrl ) : List

blogger.getUsersBlogs method

LookupCategoryGuidByName ( string name, Category &cat ) : bool

Returns Category Guid from Category name.

Reverse dictionary lookups are ugly.

NewMediaObject ( string blogId, string userName, string password, BlogEngine.Core.API.MetaWeblog.MWAMediaObject mediaObject, HttpContext request ) : BlogEngine.Core.API.MetaWeblog.MWAMediaInfo

metaWeblog.newMediaObject method

NewPage ( string blogId, string userName, string password, BlogEngine.Core.API.MetaWeblog.MWAPage mwaPage, bool publish ) : string

wp.newPage method

NewPost ( string blogId, string userName, string password, BlogEngine.Core.API.MetaWeblog.MWAPost sentPost, bool publish ) : string

metaWeblog.newPost method

Method Details

ProcessRequest() public method

Process the HTTP Request. Create XMLRPC request, find method call, process it and create response object and sent it back. This is the heart of the MetaWeblog API
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