Class: ConfigRegexNameFilter

ConfigRegexNameFilter(regexString)

new ConfigRegexNameFilter(regexString)

ConfigRegexNameFilter extends ConfigFilter to check that the packet name matches the specified regular expression. The configuration {@code "filter { type name regex ^[^]*<>*$ }"} creates {@code ConfigRegexNameFilter("^[^]*<>*$") }. Create a ConfigRegexNameFilter from the regex string.
Parameters:
Name Type Description
regexString String The regex string.
Source:

Methods

matchName(packetName) → {boolean}

Implementation of the check for match.
Parameters:
Name Type Description
packetName Name The packet name, which is already stripped of signature components if this is a signed Interest name.
Source:
Returns:
True for a match.
Type
boolean