getFilterIndex method

  1. @override
int? getFilterIndex(
  1. HttpConnect connect,
  2. String uri,
  3. int iFilter
)
override

Returns the index of the next matched request filter for the given URI and starting at the given index.

It returns null if not found.

Implementation

@override
int? getFilterIndex(HttpConnect connect, String uri, int iFilter) {
  for (; iFilter < _filterMapping.length; ++iFilter)
    if (_filterMapping[iFilter].match(connect, uri))
      return iFilter;
}