Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / service / notification-manager / NotificationManager / android / resource_hosting / src / org / iotivity / ResourceHosting / ResourceHosting.java
1 //******************************************************************
2 //
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
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
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
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.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20 package org.iotivity.ResourceHosting;
21 import java.lang.System;
22 import java.lang.String;;
23 /**
24  * To execute resource hosting function for android sample application .
25  * 
26  * @author Copyright 2015 Samsung Electronics All Rights Reserved.
27  * @see className class : ResourceHosting</br>
28  *
29  */
30
31 public class ResourceHosting {
32
33     /**
34      * jni function - OicCorrdinatorstart() method.
35      * 
36      * @see Class class :
37      *      org_iotivity_resourcehosting_ResourceHosting</br>
38      * @see Method method : OICCoordinatorStart</br>
39      * @see Signature signature : ()V</br>
40      */
41     public native int OICCoordinatorStart();
42
43     /**
44      * jni function - OICCoordinatorStop() method.
45      * 
46      * @see Class class :
47      *      org_iotivity_resourcehosting_ResourceHosting</br>
48      * @see Method method : OICCoordinatorStop</br>
49      * @see signature signature : ()V</br>
50      */
51     public native int OICCoordinatorStop();
52
53     /**
54      * jni function - ResourceHostingInit() method in order to execute
55      * OICCoordinatorStart() method.
56      * 
57      * @see Class class :
58      *      org_iotivity_resourcehosting_ResourceHosting</br>
59      * @see Method method : ResourceHostingInit</br>
60      * @param addr
61      *            ipAddress
62      * @see signature signature : (Ljava/lang/String;)V</br>
63      */
64     public native int ResourceHostingInit(String addr);
65
66     /**
67      * jni function - ResourceHostingTerminate() method in order to terminate
68      * resource hosting
69      * 
70      * @see Class class :
71      *      org_iotivity_resourcehosting_ResourceHosting</br>
72      * @see Method method : ResourceHostingTerminate</br>
73      * @see signature signature : ()V</br>
74      */
75     public native int ResourceHostingTerminate();
76
77     static {
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");
87     }
88 }