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

        /// [HeaderGroup](https://developer.android.com/reference/org/apache/http/message/HeaderGroup.html#HeaderGroup())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::org::apache::http::message::HeaderGroup>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/message/HeaderGroup", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("org/apache/http/message/HeaderGroup\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [addHeader](https://developer.android.com/reference/org/apache/http/message/HeaderGroup.html#addHeader(org.apache.http.Header))
        ///
        /// Required features: "org-apache-http-Header"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-Header")))]
        pub fn addHeader<'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/message/HeaderGroup", java.flags == PUBLIC, .name == "addHeader", .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/message/HeaderGroup\0", "addHeader\0", "(Lorg/apache/http/Header;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [removeHeader](https://developer.android.com/reference/org/apache/http/message/HeaderGroup.html#removeHeader(org.apache.http.Header))
        ///
        /// Required features: "org-apache-http-Header"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-Header")))]
        pub fn removeHeader<'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/message/HeaderGroup", java.flags == PUBLIC, .name == "removeHeader", .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/message/HeaderGroup\0", "removeHeader\0", "(Lorg/apache/http/Header;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [updateHeader](https://developer.android.com/reference/org/apache/http/message/HeaderGroup.html#updateHeader(org.apache.http.Header))
        ///
        /// Required features: "org-apache-http-Header"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-Header")))]
        pub fn updateHeader<'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/message/HeaderGroup", java.flags == PUBLIC, .name == "updateHeader", .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/message/HeaderGroup\0", "updateHeader\0", "(Lorg/apache/http/Header;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

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

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

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

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

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

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