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-entity-AbstractHttpEntity"))]
__jni_bindgen! {
    /// public class [AbstractHttpEntity](https://developer.android.com/reference/org/apache/http/entity/AbstractHttpEntity.html)
    ///
    /// Required feature: "org-apache-http-entity-AbstractHttpEntity"
    public class AbstractHttpEntity ("org/apache/http/entity/AbstractHttpEntity") extends crate::java::lang::Object, implements crate::org::apache::http::HttpEntity {

        /// [getContentType](https://developer.android.com/reference/org/apache/http/entity/AbstractHttpEntity.html#getContentType())
        ///
        /// Required features: "org-apache-http-Header"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-Header")))]
        pub fn getContentType<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::Header>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/entity/AbstractHttpEntity", java.flags == PUBLIC, .name == "getContentType", .descriptor == "()Lorg/apache/http/Header;"
            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/entity/AbstractHttpEntity\0", "getContentType\0", "()Lorg/apache/http/Header;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getContentEncoding](https://developer.android.com/reference/org/apache/http/entity/AbstractHttpEntity.html#getContentEncoding())
        ///
        /// Required features: "org-apache-http-Header"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-Header")))]
        pub fn getContentEncoding<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::Header>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/entity/AbstractHttpEntity", java.flags == PUBLIC, .name == "getContentEncoding", .descriptor == "()Lorg/apache/http/Header;"
            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/entity/AbstractHttpEntity\0", "getContentEncoding\0", "()Lorg/apache/http/Header;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isChunked](https://developer.android.com/reference/org/apache/http/entity/AbstractHttpEntity.html#isChunked())
        pub fn isChunked<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/entity/AbstractHttpEntity", java.flags == PUBLIC, .name == "isChunked", .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/entity/AbstractHttpEntity\0", "isChunked\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setContentType](https://developer.android.com/reference/org/apache/http/entity/AbstractHttpEntity.html#setContentType(org.apache.http.Header))
        ///
        /// Required features: "org-apache-http-Header"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-Header")))]
        pub fn setContentType_Header<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::Header>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/entity/AbstractHttpEntity", java.flags == PUBLIC, .name == "setContentType", .descriptor == "(Lorg/apache/http/Header;)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/entity/AbstractHttpEntity\0", "setContentType\0", "(Lorg/apache/http/Header;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setContentType](https://developer.android.com/reference/org/apache/http/entity/AbstractHttpEntity.html#setContentType(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setContentType_String<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/entity/AbstractHttpEntity", java.flags == PUBLIC, .name == "setContentType", .descriptor == "(Ljava/lang/String;)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/entity/AbstractHttpEntity\0", "setContentType\0", "(Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setContentEncoding](https://developer.android.com/reference/org/apache/http/entity/AbstractHttpEntity.html#setContentEncoding(org.apache.http.Header))
        ///
        /// Required features: "org-apache-http-Header"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-Header")))]
        pub fn setContentEncoding_Header<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::Header>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/entity/AbstractHttpEntity", java.flags == PUBLIC, .name == "setContentEncoding", .descriptor == "(Lorg/apache/http/Header;)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/entity/AbstractHttpEntity\0", "setContentEncoding\0", "(Lorg/apache/http/Header;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setContentEncoding](https://developer.android.com/reference/org/apache/http/entity/AbstractHttpEntity.html#setContentEncoding(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setContentEncoding_String<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/entity/AbstractHttpEntity", java.flags == PUBLIC, .name == "setContentEncoding", .descriptor == "(Ljava/lang/String;)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/entity/AbstractHttpEntity\0", "setContentEncoding\0", "(Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [consumeContent](https://developer.android.com/reference/org/apache/http/entity/AbstractHttpEntity.html#consumeContent())
        pub fn consumeContent<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/entity/AbstractHttpEntity", java.flags == PUBLIC, .name == "consumeContent", .descriptor == "()V"
            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/entity/AbstractHttpEntity\0", "consumeContent\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}