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
CaseSensitive
public bool CaseSensitive { get; set; }
Property Value
FilterScope
public override FilterScope FilterScope { get; }
Property Value
GenericName
public override string GenericName { get; }
Property Value
Identifier
public override Guid Identifier { get; }
Property Value
Pattern
public string Pattern { get; set; }
Property Value
SearchInRequestBody
public bool SearchInRequestBody { get; set; }
Property Value
SearchInRequestHeader
public bool SearchInRequestHeader { get; set; }
Property Value
SearchInResponseBody
public bool SearchInResponseBody { get; set; }
Property Value
SearchInResponseHeader
public bool SearchInResponseHeader { get; set; }
Property Value
ShortName
public override string ShortName { get; }
Property Value
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
HeaderFieldInfosearchString
ReadOnlySpan<char>headerLineBuffer
Span<char>caseSensitive
bool
Returns
GetExamples()
public override IEnumerable<FilterExample> GetExamples()
Returns
InternalApply(ExchangeContext?, IAuthority, IExchange?, IFilteringContext?)
protected override bool InternalApply(ExchangeContext? exchangeContext, IAuthority authority, IExchange? exchange, IFilteringContext? filteringContext)
Parameters
exchangeContext
ExchangeContextauthority
IAuthorityexchange
IExchangefilteringContext
IFilteringContext