C# Class Subtext.Framework.Util.WebPathStripper

Summary description for WebPathStripper.
Mostrar archivo Open project: ayende/Subtext

Public Methods

Method Description
GetCategryFromRss ( string url ) : string

Return the value of a url between /category/ and /rss

GetDateFromRequest ( string uri, string archiveText ) : System.DateTime
GetEntryIDFromUrl ( string url ) : int

Gets the entry ID from URL.

RemoveRssSlash ( string url ) : string

Removes the trailing RSS slash if there.

YearFromRequest ( string uri ) : int

Parses out the year from the request.

Private Methods

Method Description
CleanEndDateString ( string uri ) : string
CleanStartDateString ( string uri, string archiveText ) : string

Method Details

GetCategryFromRss() public static method

Return the value of a url between /category/ and /rss
public static GetCategryFromRss ( string url ) : string
url string
return string

GetDateFromRequest() public static method

public static GetDateFromRequest ( string uri, string archiveText ) : System.DateTime
uri string
archiveText string
return System.DateTime

GetEntryIDFromUrl() public static method

Gets the entry ID from URL.
Thrown if the specified url is null. Thrown if the specified url does not have an entry id.
public static GetEntryIDFromUrl ( string url ) : int
url string The URI.
return int

RemoveRssSlash() public static method

Removes the trailing RSS slash if there.
public static RemoveRssSlash ( string url ) : string
url string URL.
return string

YearFromRequest() public static method

Parses out the year from the request.
public static YearFromRequest ( string uri ) : int
uri string The URI.
return int