Table of Contents

Class SearchTextFilter

Namespace
Fluxzy.Rules.Filters.ViewOnlyFilters
Assembly
Fluxzy.Core.dll

Perform a global filter on any part of exchange (header, body). This is a view filter only

[FilterMetaData(null, LongDescription = "Find exchanges having a text pattern. <u>Note:</u> This performs byte block search for large/unknow length body disabling case sensitivity feature.", NotSelectable = true)]
public class SearchTextFilter : Filter
Inheritance
SearchTextFilter
Inherited Members
Extension Methods

Constructors

SearchTextFilter(string)

public SearchTextFilter(string pattern)

Parameters

pattern string

Properties

AutoGeneratedName

public override string AutoGeneratedName { get; }

Property Value

string

CaseSensitive

public bool CaseSensitive { get; set; }

Property Value

bool

FilterScope

public override FilterScope FilterScope { get; }

Property Value

FilterScope

GenericName

public override string GenericName { get; }

Property Value

string

Identifier

public override Guid Identifier { get; }

Property Value

Guid

Pattern

public string Pattern { get; set; }

Property Value

string

SearchInRequestBody

public bool SearchInRequestBody { get; set; }

Property Value

bool

SearchInRequestHeader

public bool SearchInRequestHeader { get; set; }

Property Value

bool

SearchInResponseBody

public bool SearchInResponseBody { get; set; }

Property Value

bool

SearchInResponseHeader

public bool SearchInResponseHeader { get; set; }

Property Value

bool

ShortName

public override string ShortName { get; }

Property Value

string

Methods

Contains(HeaderFieldInfo, ReadOnlySpan<char>, ref Span<char>, bool)

public static bool Contains(HeaderFieldInfo header, ReadOnlySpan<char> searchString, ref Span<char> headerLineBuffer, bool caseSensitive)

Parameters

header HeaderFieldInfo
searchString ReadOnlySpan<char>
headerLineBuffer Span<char>
caseSensitive bool

Returns

bool

GetExamples()

public override IEnumerable<FilterExample> GetExamples()

Returns

IEnumerable<FilterExample>

InternalApply(ExchangeContext?, IAuthority, IExchange?, IFilteringContext?)

protected override bool InternalApply(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange, IFilteringContext? filteringContext)

Parameters

exchangeContext ExchangeContext
authority IAuthority
exchange IExchange
filteringContext IFilteringContext

Returns

bool