C# 클래스 Stumps.Rules.BodyMatchRule

A class representing a Stump rule that evaluates the exact content of the body of an HTTP request.
상속: IStumpRule
파일 보기 프로젝트 열기: Cayan-LLC/stumps 1 사용 예제들

공개 메소드들

메소드 설명
BodyMatchRule ( ) : System

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

BodyMatchRule ( int length, string md5Hash ) : System

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

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.

IsMatch ( IStumpsHttpRequest request ) : bool

Determines whether the specified request matches the rule.

비공개 메소드들

메소드 설명
InitializeRule ( int length, string md5Hash ) : void

Initializes the rule.

IsHashEqual ( byte hashBytes ) : bool

Determines whether the bytes in a specified hash match the hash for the rule.

메소드 상세

BodyMatchRule() 공개 메소드

Initializes a new instance of the T:Stumps.Rules.BodyMatchRule class.
public BodyMatchRule ( ) : System
리턴 System

BodyMatchRule() 공개 메소드

Initializes a new instance of the T:Stumps.Rules.BodyMatchRule class.
must be equal or greater than 0. is null.
public BodyMatchRule ( int length, string md5Hash ) : System
length int The expected length of the body.
md5Hash string The MD5 hash of the body.
리턴 System

GetRuleSettings() 공개 메소드

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

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