org.ccnx.ccn.CCNContentHandler Interface Reference

A handler used to receive callbacks when data arrives matching one of our asynchronously-expressed Interests (expressed with CCNBase.expressInterest(Interest, CCNInterestHandler)). More...

List of all members.

Public Member Functions

Interest handleContent (ContentObject data, Interest interest)
 Callback called when we get new results for our query.

Detailed Description

A handler used to receive callbacks when data arrives matching one of our asynchronously-expressed Interests (expressed with CCNBase.expressInterest(Interest, CCNInterestHandler)).

Once the handler is called with matching data, the Interest is canceled. As a convenience, the handler can return a new Interest, which will be expressed on its behalf, using it as the callback listener when data is returned in response. This new Interest can be the same as the previous Interest, derived from it, or completely unrelated. Since data consumes Interest, there can only be a single response for one Interest expression.

See also:
CCNBase

Member Function Documentation

Interest org.ccnx.ccn.CCNContentHandler.handleContent ( ContentObject  data,
Interest  interest 
)

The documentation for this interface was generated from the following file:
Generated on Tue Aug 21 14:55:17 2012 for Content-Centric Networking in Java by  doxygen 1.6.3