1 /******************************************************************
3 * Copyright 2015 Samsung Electronics All Rights Reserved.
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 ******************************************************************/
21 #ifndef SIMULATOR_REMOTE_RESOURCE_JNI_H_
22 #define SIMULATOR_REMOTE_RESOURCE_JNI_H_
25 #include "simulator_remote_resource.h"
27 class JniSimulatorRemoteResource
30 JniSimulatorRemoteResource(SimulatorRemoteResourceSP &resource)
31 : m_resource(resource) {};
32 static SimulatorRemoteResourceSP getResourceHandle(JNIEnv *env, jobject object);
34 SimulatorRemoteResourceSP m_resource;
41 JNIEXPORT void JNICALL
42 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_startObserve
43 (JNIEnv *env, jobject thiz, jint observeType, jobject jQueryParamsMap, jobject jListener);
45 JNIEXPORT void JNICALL
46 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_stopObserve
47 (JNIEnv *env, jobject thiz);
49 JNIEXPORT void JNICALL
50 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_nativeGet
51 (JNIEnv *env, jobject thiz, jstring jResourceInterface,
52 jobject jQueryParamsMap, jobject jListener);
54 JNIEXPORT void JNICALL
55 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_nativePut
56 (JNIEnv *env, jobject thiz, jstring jResourceInterface,
57 jobject jRepresentation, jobject jQueryParamsMap, jobject jListener);
59 JNIEXPORT void JNICALL
60 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_nativePost
61 (JNIEnv *env, jobject thiz, jstring jResourceInterface,
62 jobject jRepresentation, jobject jQueryParamsMap, jobject jListener);
64 JNIEXPORT void JNICALL
65 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_setConfigInfo
66 (JNIEnv *env, jobject thiz, jstring jConfigPath);
68 JNIEXPORT jint JNICALL
69 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_startVerification
70 (JNIEnv *env, jobject thiz, jint jReqType, jobject jListener);
72 JNIEXPORT void JNICALL
73 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_stopVerification
74 (JNIEnv *env, jobject thiz, jint jId);
76 JNIEXPORT void JNICALL
77 Java_org_oic_simulator_clientcontroller_SimulatorRemoteResource_dispose