Class: ConfigRelationNameFilter

ConfigRelationNameFilter(name, relation)

new ConfigRelationNameFilter(name, relation)

ConfigRelationNameFilter extends ConfigFilter to check that the name is in the given relation to the packet name. The configuration "filter { type name name /example relation is-prefix-of }" creates ConfigRelationNameFilter("/example", ConfigNameRelation.Relation.IS_PREFIX_OF) . Create a ConfigRelationNameFilter for the given values.
Parameters:
Name Type Description
name Name The relation name, which is copied.
relation number The relation type as a ConfigNameRelation.Relation enum.
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