C# 클래스 Rock.UniversalSearch.Crawler.LinkParser

Helper class to parse links
파일 보기 프로젝트 열기: NewSpring/Rock 1 사용 예제들

공개 메소드들

메소드 설명
LinkParser ( ) : System

Default constructor.

ParseLinks ( HtmlAgilityPack.HtmlDocument page, string sourceUrl, string startUrl ) : void

Parses a page looking for links.

비공개 메소드들

메소드 설명
DetermineLinkType ( string link, string startingUrl ) : LinkType

Determines the type of the link.

MakeAbsoluteLink ( string link, string originatingLink ) : string

Makes the absolute link.

ResolveRelativePaths ( string relativeUrl, string originatingUrl ) : string

Needed a method to turn a relative path into an absolute path. And this seems to work.

메소드 상세

LinkParser() 공개 메소드

Default constructor.
public LinkParser ( ) : System
리턴 System

ParseLinks() 공개 메소드

Parses a page looking for links.
public ParseLinks ( HtmlAgilityPack.HtmlDocument page, string sourceUrl, string startUrl ) : void
page HtmlAgilityPack.HtmlDocument The page whose text is to be parsed.
sourceUrl string The source url of the page.
startUrl string The start URL.
리턴 void