blob: 9c671414b7048b0d9b16f721440523a4c5c0ef91 [file] [log] [blame]
Andrew Browna450fad2015-01-22 11:24:40 -08001/*
andrewsbrown4feb2da2015-03-03 16:05:29 -08002 * jndn-utils
3 * Copyright (c) 2015, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU Lesser General Public License,
7 * version 3, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT ANY
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
12 * more details.
Andrew Browna450fad2015-01-22 11:24:40 -080013 */
14package com.intel.jndn.utils;
15
16import net.named_data.jndn.Data;
17import net.named_data.jndn.Interest;
18import net.named_data.jndn.Name;
19
20/**
21 * Functional interface for serving data from Server.on()
andrewsbrown8372eaa2015-02-23 10:08:17 -080022 *
Andrew Browna450fad2015-01-22 11:24:40 -080023 * @author Andrew Brown <andrew.brown@intel.com>
24 */
25public interface OnServeInterest {
andrewsbrown8372eaa2015-02-23 10:08:17 -080026
27 public Data onInterest(Name prefix, Interest interest);
Andrew Browna450fad2015-01-22 11:24:40 -080028}