org.ccnx.ccn.CCNInterestHandler Interface Reference

A CCN filter is essentially an "interest in Interests" -- it allows a caller to register to see Interest messages that come in from the network, and optionally generate (or merely provide) data in response. More...

Inheritance diagram for org.ccnx.ccn.CCNInterestHandler:

org.ccnx.ccn.CCNFilterListener org.ccnx.ccn.impl.CCNFlowControl org.ccnx.ccn.impl.repo.RepositoryInterestHandler org.ccnx.ccn.profiles.nameenum.CCNNameEnumerator org.ccnx.ccn.test.endtoend.EndToEndTestSource org.ccnx.ccn.test.profiles.ccnd.InterestEndToEndUsingPrefixTest org.ccnx.ccn.test.protocol.InterestEndToEndTest org.ccnx.ccn.test.protocol.LatestVersionTest.Responder

List of all members.

Public Member Functions

boolean handleInterest (Interest interest)
 Callback called when we get a new interest matching our filter.


Detailed Description

A CCN filter is essentially an "interest in Interests" -- it allows a caller to register to see Interest messages that come in from the network, and optionally generate (or merely provide) data in response.

This interface provides the callback structure to be called back when an Interest is seen that matches a filter. Filters are registered using CCNBase.registerFilter(ContentName, CCNInterestHandler). Note that we will only see interests that match the name we registered in our filter -- in other words, Interests in that name or its children; not its parents. We will also only see Interests that were not already satisfied out of ccnd's own cache (or on the network path to our node).

See also:
CCNBase

CCNHandle


Member Function Documentation

boolean org.ccnx.ccn.CCNInterestHandler.handleInterest ( Interest  interest  ) 

Callback called when we get a new interest matching our filter.

Parameters:
interests The matching interest
Returns:
true if this handler has consumed the interest (that is the handler returned data satisfying the interest).

Implemented in org.ccnx.ccn.impl.CCNFlowControl, org.ccnx.ccn.impl.repo.RepositoryInterestHandler, org.ccnx.ccn.profiles.nameenum.CCNNameEnumerator, org.ccnx.ccn.test.endtoend.EndToEndTestSource, org.ccnx.ccn.test.impl.DeprecatedInterfaceTest, org.ccnx.ccn.test.profiles.ccnd.InterestEndToEndUsingPrefixTest, org.ccnx.ccn.test.protocol.InterestEndToEndTest, and org.ccnx.ccn.test.protocol.LatestVersionTest.Responder.


The documentation for this interface was generated from the following file:

Generated on Thu Feb 16 00:44:51 2012 for Content-Centric Networking in Java by  doxygen 1.5.6