C# Class URSA.Web.Http.IpUrlParser

Provides an IP based URL parsing facility.
Inheritance: UrlParser
Afficher le fichier Open project: alien-mcl/URSA

Méthodes publiques

Méthode Description
Parse ( string url, int schemeSpecificPartIndex ) : Url

Méthodes protégées

Méthode Description
CreateInstance ( string url ) : IpUrl

Creates an instance of the parsed URL.

DecodeEscape ( StringBuilder actualUrl, int index ) : int

Decodes an escaped chars.

ParsePath ( StringBuilder actualUrl, int index ) : void

Parses the path.

ParseSegment ( StringBuilder actualUrl, int index, int &lastSegment ) : int

Parses the segment with dot-segment normalization.

Private Methods

Méthode Description
FinalizeHostOrPort ( StringBuilder actualUrl, int index, int lastDelimiter, Expected &expectedToken ) : void
FinalizeUserNameOrHost ( StringBuilder actualUrl, int index, int lastDelimiter, Expected &expectedToken ) : int
FinalizeUserNameOrPassword ( StringBuilder actualUrl, int index, int lastDelimiter, Expected &expectedToken ) : int
ParseInternal ( StringBuilder actualUrl, int &index, int &lastDelimiter, Expected &expectedToken ) : bool
ProcessNonPathChar ( StringBuilder actualUrl, int index, Expected expectedToken ) : void

Method Details

CreateInstance() protected abstract méthode

Creates an instance of the parsed URL.
protected abstract CreateInstance ( string url ) : IpUrl
url string Url passed for parsing.
Résultat IpUrl

DecodeEscape() protected méthode

Decodes an escaped chars.
url;Passed url is malformed.
protected DecodeEscape ( StringBuilder actualUrl, int index ) : int
actualUrl StringBuilder The actual URL.
index int Current index.
Résultat int

Parse() public méthode

public Parse ( string url, int schemeSpecificPartIndex ) : Url
url string
schemeSpecificPartIndex int
Résultat Url

ParsePath() protected abstract méthode

Parses the path.
protected abstract ParsePath ( StringBuilder actualUrl, int index ) : void
actualUrl StringBuilder AN Actual URL.
index int Current index.
Résultat void

ParseSegment() protected méthode

Parses the segment with dot-segment normalization.
protected ParseSegment ( StringBuilder actualUrl, int index, int &lastSegment ) : int
actualUrl StringBuilder The actual URL.
index int Current index.
lastSegment int The last segment index.
Résultat int