X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=android%2Fandroid_api%2Fbase%2Fjni%2FJniOcResourceRequest.h;h=f2de51dcc7e452756cba8662cc360533a815749d;hb=refs%2Ftags%2Fupstream%2F1.0.0;hp=5b58f0c82e5964cc0faea9cb094e2b37e3a622e2;hpb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;p=platform%2Fupstream%2Fiotivity.git diff --git a/android/android_api/base/jni/JniOcResourceRequest.h b/android/android_api/base/jni/JniOcResourceRequest.h index 5b58f0c..f2de51d 100644 --- a/android/android_api/base/jni/JniOcResourceRequest.h +++ b/android/android_api/base/jni/JniOcResourceRequest.h @@ -1,158 +1,158 @@ -/* -* //****************************************************************** -* // -* // 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 "JniOcStack.h" - -#ifndef _Included_org_iotivity_base_OcResourceRequest -#define _Included_org_iotivity_base_OcResourceRequest - -using namespace OC; - -class JniOcResourceRequest -{ -public: - JniOcResourceRequest(const std::shared_ptr resourceRequest); - - ~JniOcResourceRequest(); - - std::string getRequestType(); - - const QueryParamsMap& getQueryParameters() const; - - int getRequestHandlerFlag() const; - - const OCRepresentation& getResourceRepresentation() const; - - const ObservationInfo& getObservationInfo() const; - - void setResourceUri(const std::string resourceUri); - - std::string getResourceUri(void); - - const HeaderOptions& getHeaderOptions() const; - - const OCRequestHandle& getRequestHandle() const; - - const OCResourceHandle& getResourceHandle() const; - - static JniOcResourceRequest* getJniOcResourceRequestPtr - (JNIEnv *env, jobject thiz); - -private: - std::shared_ptr m_request; -}; - -#ifdef __cplusplus -extern "C" { -#endif - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: getRequestTypeNative - * Signature: ()Ljava/lang/String; - */ - JNIEXPORT jstring JNICALL Java_org_iotivity_base_OcResourceRequest_getRequestTypeNative - (JNIEnv *, jobject); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: getQueryParameters - * Signature: ()Ljava/util/Map; - */ - JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getQueryParameters - (JNIEnv *, jobject); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: getRequestHandlerFlagNative - * Signature: ()I - */ - JNIEXPORT jint JNICALL Java_org_iotivity_base_OcResourceRequest_getRequestHandlerFlagNative - (JNIEnv *, jobject); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: getResourceRepresentation - * Signature: ()Lorg/iotivity/base/OcRepresentation; - */ - JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getResourceRepresentation - (JNIEnv *, jobject); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: getObservationInfo - * Signature: ()Lorg/iotivity/base/ObservationInfo; - */ - JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getObservationInfo - (JNIEnv *, jobject); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: setResourceUri - * Signature: (Ljava/lang/String;)V - */ - JNIEXPORT void JNICALL Java_org_iotivity_base_OcResourceRequest_setResourceUri - (JNIEnv *, jobject, jstring); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: getResourceUri - * Signature: ()Ljava/lang/String; - */ - JNIEXPORT jstring JNICALL Java_org_iotivity_base_OcResourceRequest_getResourceUri - (JNIEnv *, jobject); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: getHeaderOptions - * Signature: ()Ljava/util/List; - */ - JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getHeaderOptions - (JNIEnv *, jobject); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: getRequestHandle - * Signature: ()Lorg/iotivity/base/OcRequestHandle; - */ - JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getRequestHandle - (JNIEnv *, jobject); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: getResourceHandle - * Signature: ()Lorg/iotivity/base/OcResourceHandle; - */ - JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getResourceHandle - (JNIEnv *, jobject); - - /* - * Class: org_iotivity_base_OcResourceRequest - * Method: dispose - * Signature: ()V - */ - JNIEXPORT void JNICALL Java_org_iotivity_base_OcResourceRequest_dispose - (JNIEnv *, jobject); - -#ifdef __cplusplus -} -#endif +/* +* //****************************************************************** +* // +* // 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 "JniOcStack.h" + +#ifndef _Included_org_iotivity_base_OcResourceRequest +#define _Included_org_iotivity_base_OcResourceRequest + +using namespace OC; + +class JniOcResourceRequest +{ +public: + JniOcResourceRequest(const std::shared_ptr resourceRequest); + + ~JniOcResourceRequest(); + + std::string getRequestType(); + + const QueryParamsMap& getQueryParameters() const; + + int getRequestHandlerFlag() const; + + const OCRepresentation& getResourceRepresentation() const; + + const ObservationInfo& getObservationInfo() const; + + void setResourceUri(const std::string resourceUri); + + std::string getResourceUri(void); + + const HeaderOptions& getHeaderOptions() const; + + const OCRequestHandle& getRequestHandle() const; + + const OCResourceHandle& getResourceHandle() const; + + static JniOcResourceRequest* getJniOcResourceRequestPtr + (JNIEnv *env, jobject thiz); + +private: + std::shared_ptr m_request; +}; + +#ifdef __cplusplus +extern "C" { +#endif + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: getRequestTypeNative + * Signature: ()Ljava/lang/String; + */ + JNIEXPORT jstring JNICALL Java_org_iotivity_base_OcResourceRequest_getRequestTypeNative + (JNIEnv *, jobject); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: getQueryParameters + * Signature: ()Ljava/util/Map; + */ + JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getQueryParameters + (JNIEnv *, jobject); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: getRequestHandlerFlagNative + * Signature: ()I + */ + JNIEXPORT jint JNICALL Java_org_iotivity_base_OcResourceRequest_getRequestHandlerFlagNative + (JNIEnv *, jobject); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: getResourceRepresentation + * Signature: ()Lorg/iotivity/base/OcRepresentation; + */ + JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getResourceRepresentation + (JNIEnv *, jobject); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: getObservationInfo + * Signature: ()Lorg/iotivity/base/ObservationInfo; + */ + JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getObservationInfo + (JNIEnv *, jobject); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: setResourceUri + * Signature: (Ljava/lang/String;)V + */ + JNIEXPORT void JNICALL Java_org_iotivity_base_OcResourceRequest_setResourceUri + (JNIEnv *, jobject, jstring); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: getResourceUri + * Signature: ()Ljava/lang/String; + */ + JNIEXPORT jstring JNICALL Java_org_iotivity_base_OcResourceRequest_getResourceUri + (JNIEnv *, jobject); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: getHeaderOptions + * Signature: ()Ljava/util/List; + */ + JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getHeaderOptions + (JNIEnv *, jobject); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: getRequestHandle + * Signature: ()Lorg/iotivity/base/OcRequestHandle; + */ + JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getRequestHandle + (JNIEnv *, jobject); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: getResourceHandle + * Signature: ()Lorg/iotivity/base/OcResourceHandle; + */ + JNIEXPORT jobject JNICALL Java_org_iotivity_base_OcResourceRequest_getResourceHandle + (JNIEnv *, jobject); + + /* + * Class: org_iotivity_base_OcResourceRequest + * Method: dispose + * Signature: ()V + */ + JNIEXPORT void JNICALL Java_org_iotivity_base_OcResourceRequest_dispose + (JNIEnv *, jobject); + +#ifdef __cplusplus +} +#endif #endif \ No newline at end of file