Andrew Brown | a450fad | 2015-01-22 11:24:40 -0800 | [diff] [blame] | 1 | /* |
| 2 | * File name: OnServeInterest.java |
| 3 | * |
| 4 | * Purpose: Functional interface for serving data from Server.on() |
| 5 | * |
| 6 | * © Copyright Intel Corporation. All rights reserved. |
| 7 | * Intel Corporation, 2200 Mission College Boulevard, |
| 8 | * Santa Clara, CA 95052-8119, USA |
| 9 | */ |
| 10 | package com.intel.jndn.utils; |
| 11 | |
| 12 | import net.named_data.jndn.Data; |
| 13 | import net.named_data.jndn.Interest; |
| 14 | import net.named_data.jndn.Name; |
| 15 | |
| 16 | /** |
| 17 | * Functional interface for serving data from Server.on() |
andrewsbrown | 8372eaa | 2015-02-23 10:08:17 -0800 | [diff] [blame] | 18 | * |
Andrew Brown | a450fad | 2015-01-22 11:24:40 -0800 | [diff] [blame] | 19 | * @author Andrew Brown <andrew.brown@intel.com> |
| 20 | */ |
| 21 | public interface OnServeInterest { |
andrewsbrown | 8372eaa | 2015-02-23 10:08:17 -0800 | [diff] [blame] | 22 | |
| 23 | public Data onInterest(Name prefix, Interest interest); |
Andrew Brown | a450fad | 2015-01-22 11:24:40 -0800 | [diff] [blame] | 24 | } |