C# Class ServiceStack.ServiceHost.RestPath

Inheritance: IRestPath
ファイルを表示 Open project: firstsee/ServiceStack Class Usage Examples

Public Properties

Property Type Description
Verbs string[]

Public Methods

Method Description
CreateRequest ( string pathInfo ) : object
CreateRequest ( string pathInfo, string>.Dictionary queryStringAndFormData, object fromInstance ) : object
GetFirstMatchHashKeys ( string pathPartsForMatching ) : IEnumerable
GetFirstMatchWildCardHashKeys ( string pathPartsForMatching ) : IEnumerable
GetHashCode ( ) : int
GetPathPartsForMatching ( string pathInfo ) : string[]
IsMatch ( string httpMethod, string withPathInfoParts ) : bool

For performance withPathInfoParts should already be a lower case string to minimize redundant matching operations.

RestPath ( Type requestType, ServiceStack.ServiceHost.RestServiceAttribute attr ) : System

Private Methods

Method Description
ExplodeComponents ( string &withPathInfoParts ) : bool
GetPotentialMatchesWithPrefix ( string hashPrefix, string pathPartsForMatching ) : IEnumerable
RegisterCaseInsenstivePropertyNameMappings ( ) : void

Method Details

CreateRequest() public method

public CreateRequest ( string pathInfo ) : object
pathInfo string
return object

CreateRequest() public method

public CreateRequest ( string pathInfo, string>.Dictionary queryStringAndFormData, object fromInstance ) : object
pathInfo string
queryStringAndFormData string>.Dictionary
fromInstance object
return object

GetFirstMatchHashKeys() public static method

public static GetFirstMatchHashKeys ( string pathPartsForMatching ) : IEnumerable
pathPartsForMatching string
return IEnumerable

GetFirstMatchWildCardHashKeys() public static method

public static GetFirstMatchWildCardHashKeys ( string pathPartsForMatching ) : IEnumerable
pathPartsForMatching string
return IEnumerable

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetPathPartsForMatching() public static method

public static GetPathPartsForMatching ( string pathInfo ) : string[]
pathInfo string
return string[]

IsMatch() public method

For performance withPathInfoParts should already be a lower case string to minimize redundant matching operations.
public IsMatch ( string httpMethod, string withPathInfoParts ) : bool
httpMethod string
withPathInfoParts string
return bool

RestPath() public method

public RestPath ( Type requestType, ServiceStack.ServiceHost.RestServiceAttribute attr ) : System
requestType System.Type
attr ServiceStack.ServiceHost.RestServiceAttribute
return System

Property Details

Verbs public_oe property

public string[] Verbs
return string[]