Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / android / android_api / base / jni / JniOcRequestHandle.cpp
index 444689d..b916490 100644 (file)
@@ -1,63 +1,63 @@
-/*\r
-* //******************************************************************\r
-* //\r
-* // Copyright 2015 Intel Corporation.\r
-* //\r
-* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r
-* //\r
-* // Licensed under the Apache License, Version 2.0 (the "License");\r
-* // you may not use this file except in compliance with the License.\r
-* // You may obtain a copy of the License at\r
-* //\r
-* //      http://www.apache.org/licenses/LICENSE-2.0\r
-* //\r
-* // Unless required by applicable law or agreed to in writing, software\r
-* // distributed under the License is distributed on an "AS IS" BASIS,\r
-* // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-* // See the License for the specific language governing permissions and\r
-* // limitations under the License.\r
-* //\r
-* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r
-*/\r
-#include "JniOcRequestHandle.h"\r
-\r
-JniOcRequestHandle::JniOcRequestHandle(OCRequestHandle requestHandle) : m_requestHandle(requestHandle)\r
-{}\r
-\r
-JniOcRequestHandle::~JniOcRequestHandle()\r
-{\r
-    LOGD("~JniOcRequestHandle()");\r
-}\r
-\r
-JniOcRequestHandle* JniOcRequestHandle::getJniOcRequestHandlePtr\r
-(JNIEnv *env, jobject thiz)\r
-{\r
-    JniOcRequestHandle *handle = GetHandle<JniOcRequestHandle>(env, thiz);\r
-    if (env->ExceptionCheck())\r
-    {\r
-        LOGE("Failed to get native handle from OcRequestHandle");\r
-    }\r
-    if (!handle)\r
-    {\r
-        ThrowOcException(JNI_NO_NATIVE_POINTER, "");\r
-    }\r
-    return handle;\r
-}\r
-\r
-OCRequestHandle JniOcRequestHandle::getOCRequestHandle()\r
-{\r
-    return this->m_requestHandle;\r
-}\r
-\r
-/*\r
-* Class:     org_iotivity_base_OcRequestHandle\r
-* Method:    dispose\r
-* Signature: ()V\r
-*/\r
-JNIEXPORT void JNICALL Java_org_iotivity_base_OcRequestHandle_dispose\r
-(JNIEnv *env, jobject thiz)\r
-{\r
-    LOGD("OcRequestHandle_dispose");\r
-    JniOcRequestHandle *handle = JniOcRequestHandle::getJniOcRequestHandlePtr(env, thiz);\r
-    delete handle;\r
+/*
+* //******************************************************************
+* //
+* // Copyright 2015 Intel Corporation.
+* //
+* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+* //
+* // 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.
+* //
+* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+*/
+#include "JniOcRequestHandle.h"
+
+JniOcRequestHandle::JniOcRequestHandle(OCRequestHandle requestHandle) : m_requestHandle(requestHandle)
+{}
+
+JniOcRequestHandle::~JniOcRequestHandle()
+{
+    LOGD("~JniOcRequestHandle()");
+}
+
+JniOcRequestHandle* JniOcRequestHandle::getJniOcRequestHandlePtr
+(JNIEnv *env, jobject thiz)
+{
+    JniOcRequestHandle *handle = GetHandle<JniOcRequestHandle>(env, thiz);
+    if (env->ExceptionCheck())
+    {
+        LOGE("Failed to get native handle from OcRequestHandle");
+    }
+    if (!handle)
+    {
+        ThrowOcException(JNI_NO_NATIVE_POINTER, "");
+    }
+    return handle;
+}
+
+OCRequestHandle JniOcRequestHandle::getOCRequestHandle()
+{
+    return this->m_requestHandle;
+}
+
+/*
+* Class:     org_iotivity_base_OcRequestHandle
+* Method:    dispose
+* Signature: ()V
+*/
+JNIEXPORT void JNICALL Java_org_iotivity_base_OcRequestHandle_dispose
+(JNIEnv *env, jobject thiz)
+{
+    LOGD("OcRequestHandle_dispose");
+    JniOcRequestHandle *handle = JniOcRequestHandle::getJniOcRequestHandlePtr(env, thiz);
+    delete handle;
 }
\ No newline at end of file