C# Class Stumps.Rules.BodyContentRule

A class representing a Stump rule that examines the content of the body using text evaluations for an HTTP request.
Inheritance: IStumpRule
Show file Open project: Cayan-LLC/stumps Class Usage Examples

Public Methods

Method Description
BodyContentRule ( ) : System

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

BodyContentRule ( string textEvaluators ) : System

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

GetRuleSettings ( ) : IEnumerable

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

GetTextEvaluators ( ) : string[]

Gets the text evaluators.

InitializeFromSettings ( IEnumerable settings ) : void

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

IsMatch ( IStumpsHttpRequest request ) : bool

Determines whether the specified request matches the rule.

Private Methods

Method Description
InitializeRule ( string textEvaluators ) : void

Initializes the rule.

Method Details

BodyContentRule() public method

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

BodyContentRule() public method

Initializes a new instance of the T:Stumps.Rules.BodyContentRule class.
public BodyContentRule ( string textEvaluators ) : System
textEvaluators string The array of strings representing text evaluation rules.
return System

GetRuleSettings() public method

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

GetTextEvaluators() public method

Gets the text evaluators.
public GetTextEvaluators ( ) : string[]
return string[]

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

IsMatch() public method

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