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. |
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. |
Returns:
True for a match.
- Type
- boolean