Project

General

Profile

Actions

Feature #2567

closed

InterestFilter abstraction

Added by Alex Afanasyev over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

While it is only possible to register a prefix with local NFD, the callback dispatch inside the Face can use a more powerful mechanisms to do callback dispatch.

Suggested interface based on ndn-cxx:

class InterestFilter
{
  InterestFilter(Name prefix);

  InterestFilter(String prefixUri);

  InterestFilter(Name prefix, String regexFilter);

  boolean
  doesMatch(Name name) const;

  Name
  getPrefix();

  boolean
  hasRegexFilter();

  implementation-defined
  getRegexFilter();
};
Actions

Also available in: Atom PDF