Class: RegisteredPrefix

Face. RegisteredPrefix

new RegisteredPrefix(registeredPrefixId, prefix, relatedInterestFilterId)

A RegisteredPrefix holds a registeredPrefixId and information necessary to remove the registration later. It optionally holds a related interestFilterId if the InterestFilter was set in the same registerPrefix operation.
Parameters:
Name Type Description
registeredPrefixId number A unique ID for this entry, which you should get with getNextRegisteredPrefixId().
prefix Name The name prefix.
relatedInterestFilterId number (optional) The related interestFilterId for the filter set in the same registerPrefix operation. If omitted, set to 0.
Source:

Methods

(static) getNextRegisteredPrefixId() → {number}

Get the next unique registered prefix ID.
Source:
Returns:
The next registered prefix ID.
Type
number

getPrefix() → {Name}

Get the name prefix given to the constructor.
Source:
Returns:
The name prefix.
Type
Name

getRegisteredPrefixId() → {number}

Get the registeredPrefixId given to the constructor.
Source:
Returns:
The registeredPrefixId.
Type
number

getRelatedInterestFilterId() → {number}

Get the related interestFilterId given to the constructor.
Source:
Returns:
The related interestFilterId.
Type
number