public abstract class ConfigFilter extends Object
| Constructor and Description |
|---|
ConfigFilter() |
| Modifier and Type | Method and Description |
|---|---|
static ConfigFilter |
create(BoostInfoTree configSection)
Create a filter from the configuration section.
|
boolean |
match(boolean isForInterest,
Name packetName)
Call the virtual matchName method based on the packet type.
|
protected abstract boolean |
matchName(Name packetName)
Implementation of the check for match.
|
public final boolean match(boolean isForInterest,
Name packetName)
throws ValidatorConfigError
isForInterest - True if packetName is for an Interest, false if for a
Data packet.packetName - The packet name. For a signed interest, the last two
components are skipped but not removed.ValidatorConfigErrorpublic static ConfigFilter create(BoostInfoTree configSection) throws ValidatorConfigError
configSection - The section containing the definition of the filter,
e.g. one of "validator.rule.filter".ValidatorConfigErrorprotected abstract boolean matchName(Name packetName) throws ValidatorConfigError
packetName - The packet name, which is already stripped of signature
components if this is a signed Interest name.ValidatorConfigErrorCopyright © 2018. All rights reserved.