blob: 8be4f6a0934162776406f119f6147acaa22cdad6 [file] [log] [blame]
Andrew Browna450fad2015-01-22 11:24:40 -08001/*
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 */
10package com.intel.jndn.utils;
11
12import net.named_data.jndn.Data;
13import net.named_data.jndn.Interest;
14import net.named_data.jndn.Name;
15
16/**
17 * Functional interface for serving data from Server.on()
andrewsbrown8372eaa2015-02-23 10:08:17 -080018 *
Andrew Browna450fad2015-01-22 11:24:40 -080019 * @author Andrew Brown <andrew.brown@intel.com>
20 */
21public interface OnServeInterest {
andrewsbrown8372eaa2015-02-23 10:08:17 -080022
23 public Data onInterest(Name prefix, Interest interest);
Andrew Browna450fad2015-01-22 11:24:40 -080024}