C# Класс Stumps.Rules.BodyContentRule

A class representing a Stump rule that examines the content of the body using text evaluations for an HTTP request.
Наследование: IStumpRule
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
InitializeRule ( string textEvaluators ) : void

Initializes the rule.

Описание методов

BodyContentRule() публичный Метод

Initializes a new instance of the T:Stumps.Rules.BodyContentRule class.
public BodyContentRule ( ) : System
Результат System

BodyContentRule() публичный Метод

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.
Результат System

GetRuleSettings() публичный Метод

Gets an enumerable list of T:Stumps.RuleSetting objects used to represent the current instance.
public GetRuleSettings ( ) : IEnumerable
Результат IEnumerable

GetTextEvaluators() публичный Метод

Gets the text evaluators.
public GetTextEvaluators ( ) : string[]
Результат string[]

InitializeFromSettings() публичный Метод

Initializes a rule from an enumerable list of T:Stumps.RuleSetting objects.
public InitializeFromSettings ( IEnumerable settings ) : void
settings IEnumerable The enumerable list of objects.
Результат void

IsMatch() публичный Метод

Determines whether the specified request matches the rule.
public IsMatch ( IStumpsHttpRequest request ) : bool
request IStumpsHttpRequest The to evaluate.
Результат bool