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-HeaderElement"))]
__jni_bindgen! {
    /// public interface [HeaderElement](https://developer.android.com/reference/org/apache/http/HeaderElement.html)
    ///
    /// Required feature: "org-apache-http-HeaderElement"
    #[deprecated] public interface HeaderElement ("org/apache/http/HeaderElement") extends crate::java::lang::Object {

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

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

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

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

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

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