1 //******************************************************************
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20 package org.iotivity.ResourceHosting;
21 import java.lang.System;
22 import java.lang.String;;
24 * To execute resource hosting function for android sample application .
26 * @author Copyright 2015 Samsung Electronics All Rights Reserved.
27 * @see className class : ResourceHosting</br>
31 public class ResourceHosting {
34 * jni function - OicCorrdinatorstart() method.
37 * org_iotivity_resourcehosting_ResourceHosting</br>
38 * @see Method method : OICCoordinatorStart</br>
39 * @see Signature signature : ()V</br>
41 public native int OICCoordinatorStart();
44 * jni function - OICCoordinatorStop() method.
47 * org_iotivity_resourcehosting_ResourceHosting</br>
48 * @see Method method : OICCoordinatorStop</br>
49 * @see signature signature : ()V</br>
51 public native int OICCoordinatorStop();
54 * jni function - ResourceHostingInit() method in order to execute
55 * OICCoordinatorStart() method.
58 * org_iotivity_resourcehosting_ResourceHosting</br>
59 * @see Method method : ResourceHostingInit</br>
62 * @see signature signature : (Ljava/lang/String;)V</br>
64 public native int ResourceHostingInit(String addr);
67 * jni function - ResourceHostingTerminate() method in order to terminate
71 * org_iotivity_resourcehosting_ResourceHosting</br>
72 * @see Method method : ResourceHostingTerminate</br>
73 * @see signature signature : ()V</br>
75 public native int ResourceHostingTerminate();
78 System.loadLibrary("connectivity_abstraction");
79 System.loadLibrary("ca-interface");
80 System.loadLibrary("oc_logger_core");
81 System.loadLibrary("oc_logger");
82 System.loadLibrary("octbstack");
83 System.loadLibrary("oc");
84 System.loadLibrary("ocstack-jni");
85 System.loadLibrary("NotificationManager");
86 System.loadLibrary("ResourceHosing_JNI");