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
Afficher le fichier Open project: Cayan-LLC/stumps Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
InitializeRule ( string textEvaluators ) : void

Initializes the rule.

Method Details

BodyContentRule() public méthode

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

BodyContentRule() public méthode

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.
Résultat System

GetRuleSettings() public méthode

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

GetTextEvaluators() public méthode

Gets the text evaluators.
public GetTextEvaluators ( ) : string[]
Résultat string[]

InitializeFromSettings() public méthode

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

IsMatch() public méthode

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