C# Class OpenRasta.UriTemplate

显示文件 Open project: openrasta/openrasta-core Class Usage Examples

Public Methods

Method Description
BindByName ( Uri baseAddress, NameValueCollection parameters ) : Uri
BindByPosition ( Uri baseAddress ) : Uri
GetHashCode ( ) : int
IsEquivalentTo ( UriTemplate other ) : bool
Match ( Uri baseAddress, Uri candidate ) : UriTemplateMatch
ToString ( ) : string
UriTemplate ( string template ) : System

Private Methods

Method Description
GetQueryStringVariableNames ( QuerySegment>.Dictionary valueCollection ) : IEnumerable
GetVariableName ( string segmentText ) : string
ParseQueryStringVariables ( Uri templateUri ) : QuerySegment>.Dictionary
ParseSegmentVariables ( List _segments ) : UrlSegment>.Dictionary
ParseSegments ( Uri _templateUri ) : List
ParseTemplate ( string template ) : Uri
RemoveTrailingSlash ( string str ) : string
SanitizeUriAsBaseUri ( Uri address ) : Uri

Method Details

BindByName() public method

public BindByName ( Uri baseAddress, NameValueCollection parameters ) : Uri
baseAddress System.Uri
parameters System.Collections.Specialized.NameValueCollection
return System.Uri

BindByPosition() public method

public BindByPosition ( Uri baseAddress ) : Uri
baseAddress System.Uri
return System.Uri

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsEquivalentTo() public method

public IsEquivalentTo ( UriTemplate other ) : bool
other UriTemplate
return bool

Match() public method

public Match ( Uri baseAddress, Uri candidate ) : UriTemplateMatch
baseAddress System.Uri
candidate System.Uri
return UriTemplateMatch

ToString() public method

public ToString ( ) : string
return string

UriTemplate() public method

public UriTemplate ( string template ) : System
template string
return System