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

        /// [formatElements](https://developer.android.com/reference/org/apache/http/message/HeaderValueFormatter.html#formatElements(org.apache.http.util.CharArrayBuffer,%20org.apache.http.HeaderElement%5B%5D,%20boolean))
        ///
        /// Required features: "org-apache-http-HeaderElement", "org-apache-http-util-CharArrayBuffer"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-HeaderElement", feature = "org-apache-http-util-CharArrayBuffer")))]
        pub fn formatElements<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::org::apache::http::HeaderElement, crate::java::lang::Throwable>>>, arg2: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::util::CharArrayBuffer>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/message/HeaderValueFormatter", java.flags == PUBLIC | ABSTRACT, .name == "formatElements", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;[Lorg/apache/http/HeaderElement;Z)Lorg/apache/http/util/CharArrayBuffer;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                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/HeaderValueFormatter\0", "formatElements\0", "(Lorg/apache/http/util/CharArrayBuffer;[Lorg/apache/http/HeaderElement;Z)Lorg/apache/http/util/CharArrayBuffer;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [formatHeaderElement](https://developer.android.com/reference/org/apache/http/message/HeaderValueFormatter.html#formatHeaderElement(org.apache.http.util.CharArrayBuffer,%20org.apache.http.HeaderElement,%20boolean))
        ///
        /// Required features: "org-apache-http-HeaderElement", "org-apache-http-util-CharArrayBuffer"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-HeaderElement", feature = "org-apache-http-util-CharArrayBuffer")))]
        pub fn formatHeaderElement<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::HeaderElement>>, arg2: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::util::CharArrayBuffer>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/message/HeaderValueFormatter", java.flags == PUBLIC | ABSTRACT, .name == "formatHeaderElement", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/HeaderElement;Z)Lorg/apache/http/util/CharArrayBuffer;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                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/HeaderValueFormatter\0", "formatHeaderElement\0", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/HeaderElement;Z)Lorg/apache/http/util/CharArrayBuffer;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [formatParameters](https://developer.android.com/reference/org/apache/http/message/HeaderValueFormatter.html#formatParameters(org.apache.http.util.CharArrayBuffer,%20org.apache.http.NameValuePair%5B%5D,%20boolean))
        ///
        /// Required features: "org-apache-http-NameValuePair", "org-apache-http-util-CharArrayBuffer"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-NameValuePair", feature = "org-apache-http-util-CharArrayBuffer")))]
        pub fn formatParameters<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::org::apache::http::NameValuePair, crate::java::lang::Throwable>>>, arg2: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::util::CharArrayBuffer>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/message/HeaderValueFormatter", java.flags == PUBLIC | ABSTRACT, .name == "formatParameters", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;[Lorg/apache/http/NameValuePair;Z)Lorg/apache/http/util/CharArrayBuffer;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                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/HeaderValueFormatter\0", "formatParameters\0", "(Lorg/apache/http/util/CharArrayBuffer;[Lorg/apache/http/NameValuePair;Z)Lorg/apache/http/util/CharArrayBuffer;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [formatNameValuePair](https://developer.android.com/reference/org/apache/http/message/HeaderValueFormatter.html#formatNameValuePair(org.apache.http.util.CharArrayBuffer,%20org.apache.http.NameValuePair,%20boolean))
        ///
        /// Required features: "org-apache-http-NameValuePair", "org-apache-http-util-CharArrayBuffer"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-NameValuePair", feature = "org-apache-http-util-CharArrayBuffer")))]
        pub fn formatNameValuePair<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::util::CharArrayBuffer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::NameValuePair>>, arg2: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::org::apache::http::util::CharArrayBuffer>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/message/HeaderValueFormatter", java.flags == PUBLIC | ABSTRACT, .name == "formatNameValuePair", .descriptor == "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/NameValuePair;Z)Lorg/apache/http/util/CharArrayBuffer;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                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/HeaderValueFormatter\0", "formatNameValuePair\0", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/NameValuePair;Z)Lorg/apache/http/util/CharArrayBuffer;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}