C# Class Simplify.Web.Routing.RouteMatcher

Provides HTTP route parser and matcher
Inheritance: IRouteMatcher
Exibir arquivo Open project: i4004/Simplify.Web

Public Methods

Method Description
Match ( string currentPath, string controllerPath ) : IRouteMatchResult

Matches the current path with controller path. Only "/", "/action", "/action/{userName}/{id}", "/action/{id:int}", "/{id}" etc. route types allowed

RouteMatcher ( IControllerPathParser controllerPathParser ) : System

Initializes a new instance of the RouteMatcher class.

Private Methods

Method Description
GetBoolArrayParameterValue ( string source ) : IList
GetBoolParameterValue ( string source ) : object
GetDecimalArrayParameterValue ( string source ) : IList
GetDecimalParameterValue ( string source ) : object
GetIntArrayParameterValue ( string source ) : IList
GetIntParameterValue ( string source ) : object
GetParameterValue ( PathParameter pathParameter, string source ) : object
GetStringArrayParameterValue ( string source ) : IList

Method Details

Match() public method

Matches the current path with controller path. Only "/", "/action", "/action/{userName}/{id}", "/action/{id:int}", "/{id}" etc. route types allowed
public Match ( string currentPath, string controllerPath ) : IRouteMatchResult
currentPath string The current path.
controllerPath string The controller path.
return IRouteMatchResult

RouteMatcher() public method

Initializes a new instance of the RouteMatcher class.
public RouteMatcher ( IControllerPathParser controllerPathParser ) : System
controllerPathParser IControllerPathParser The controller path parser.
return System