C# Class Stumps.Rules.UrlRule

A class representing a Stump rule that evaluates the URL of an HTTP request.
Inheritance: IStumpRule
Exibir arquivo Open project: Cayan-LLC/stumps Class Usage Examples

Public Methods

Method Description
GetRuleSettings ( ) : IEnumerable

Gets an enumerable list of T:Stumps.RuleSetting objects used to represent the current instance.

InitializeFromSettings ( IEnumerable settings ) : void

Initializes a rule from an enumerable list of T:Stumps.RuleSetting objects.

InitializeRule ( string value ) : void

Initializes the rule.

IsMatch ( IStumpsHttpRequest request ) : bool

Determines whether the specified request matches the rule.

UrlRule ( ) : System

Initializes a new instance of the T:Stumps.Rules.UrlRule class.

UrlRule ( string value ) : System

Initializes a new instance of the T:Stumps.Rules.UrlRule class.

Method Details

GetRuleSettings() public method

Gets an enumerable list of T:Stumps.RuleSetting objects used to represent the current instance.
public GetRuleSettings ( ) : IEnumerable
return IEnumerable

InitializeFromSettings() public method

Initializes a rule from an enumerable list of T:Stumps.RuleSetting objects.
public InitializeFromSettings ( IEnumerable settings ) : void
settings IEnumerable The enumerable list of objects.
return void

InitializeRule() public method

Initializes the rule.
public InitializeRule ( string value ) : void
value string The value used for the URL rule.
return void

IsMatch() public method

Determines whether the specified request matches the rule.
public IsMatch ( IStumpsHttpRequest request ) : bool
request IStumpsHttpRequest The to evaluate.
return bool

UrlRule() public method

Initializes a new instance of the T:Stumps.Rules.UrlRule class.
public UrlRule ( ) : System
return System

UrlRule() public method

Initializes a new instance of the T:Stumps.Rules.UrlRule class.
public UrlRule ( string value ) : System
value string The value used for the URL rule.
return System