jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "org-apache-http-HttpEntityEnclosingRequest"))]
__jni_bindgen! {
    /// public interface [HttpEntityEnclosingRequest](https://developer.android.com/reference/org/apache/http/HttpEntityEnclosingRequest.html)
    ///
    /// Required feature: "org-apache-http-HttpEntityEnclosingRequest"
    #[deprecated] public interface HttpEntityEnclosingRequest ("org/apache/http/HttpEntityEnclosingRequest") extends crate::java::lang::Object, implements crate::org::apache::http::HttpRequest {

        /// [expectContinue](https://developer.android.com/reference/org/apache/http/HttpEntityEnclosingRequest.html#expectContinue())
        pub fn expectContinue<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/HttpEntityEnclosingRequest", java.flags == PUBLIC | ABSTRACT, .name == "expectContinue", .descriptor == "()Z"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/HttpEntityEnclosingRequest\0", "expectContinue\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setEntity](https://developer.android.com/reference/org/apache/http/HttpEntityEnclosingRequest.html#setEntity(org.apache.http.HttpEntity))
        ///
        /// Required features: "org-apache-http-HttpEntity"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-HttpEntity")))]
        pub fn setEntity<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::HttpEntity>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/HttpEntityEnclosingRequest", java.flags == PUBLIC | ABSTRACT, .name == "setEntity", .descriptor == "(Lorg/apache/http/HttpEntity;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/HttpEntityEnclosingRequest\0", "setEntity\0", "(Lorg/apache/http/HttpEntity;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getEntity](https://developer.android.com/reference/org/apache/http/HttpEntityEnclosingRequest.html#getEntity())
        ///
        /// Required features: "org-apache-http-HttpEntity"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-HttpEntity")))]
        pub fn getEntity<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::HttpEntity>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/HttpEntityEnclosingRequest", java.flags == PUBLIC | ABSTRACT, .name == "getEntity", .descriptor == "()Lorg/apache/http/HttpEntity;"
            unsafe {
                let __jni_args = [];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/HttpEntityEnclosingRequest\0", "getEntity\0", "()Lorg/apache/http/HttpEntity;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}