X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fsoft-sensor-manager%2FSDK%2Fjava%2Forg%2Fiotivity%2Fservice%2Fssm%2FIReportReceiver.java;h=090f823ed299796d00db851f2fc5844f5e0548c7;hb=935fdb9b67b6c10d007e652e9e2e028fd6ccfe09;hp=9a8aec19f9da744e0d115ae110e4da4d74541103;hpb=00b3660e45c56cb3db35dc2596a054f801b5591a;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/soft-sensor-manager/SDK/java/org/iotivity/service/ssm/IReportReceiver.java b/service/soft-sensor-manager/SDK/java/org/iotivity/service/ssm/IReportReceiver.java index 9a8aec1..090f823 100644 --- a/service/soft-sensor-manager/SDK/java/org/iotivity/service/ssm/IReportReceiver.java +++ b/service/soft-sensor-manager/SDK/java/org/iotivity/service/ssm/IReportReceiver.java @@ -1,5 +1,51 @@ +/****************************************************************** + * + * Copyright 2015 Samsung Electronics All Rights Reserved. + * + * + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ******************************************************************/ +/** + * @file IReportReceiver.java + * + * @brief This file provides a class for a set of APIs to handle response on receiving + * message + * + */ + package org.iotivity.service.ssm; -public interface IReportReceiver { - public void OnMessageReceived(String tag, String msg); -} +/** + * @class IReportReceiver + * @brief This class provides an API to handle the report Message. + * The application should implement the pure virtual function OnMessageReceived. + * + */ +public abstract class IReportReceiver +{ + /** + * Handle response on receiving message + * This abstract method needs to be implemeted by application + * as a precondition for query engine implementation. + * + * @param tag - tag from SSMCore + * + * @param msg - received message + * + * @return void + * + */ + public abstract void onMessageReceived(String tag, String msg); +} \ No newline at end of file