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

        /// [isRedirecting](https://developer.android.com/reference/org/apache/http/client/params/HttpClientParams.html#isRedirecting(org.apache.http.params.HttpParams))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn isRedirecting<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/params/HttpClientParams", java.flags == PUBLIC | STATIC, .name == "isRedirecting", .descriptor == "(Lorg/apache/http/params/HttpParams;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/client/params/HttpClientParams\0", "isRedirecting\0", "(Lorg/apache/http/params/HttpParams;)Z\0");
                __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setRedirecting](https://developer.android.com/reference/org/apache/http/client/params/HttpClientParams.html#setRedirecting(org.apache.http.params.HttpParams,%20boolean))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn setRedirecting<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/params/HttpClientParams", java.flags == PUBLIC | STATIC, .name == "setRedirecting", .descriptor == "(Lorg/apache/http/params/HttpParams;Z)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/client/params/HttpClientParams\0", "setRedirecting\0", "(Lorg/apache/http/params/HttpParams;Z)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isAuthenticating](https://developer.android.com/reference/org/apache/http/client/params/HttpClientParams.html#isAuthenticating(org.apache.http.params.HttpParams))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn isAuthenticating<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/params/HttpClientParams", java.flags == PUBLIC | STATIC, .name == "isAuthenticating", .descriptor == "(Lorg/apache/http/params/HttpParams;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/client/params/HttpClientParams\0", "isAuthenticating\0", "(Lorg/apache/http/params/HttpParams;)Z\0");
                __jni_env.call_static_boolean_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setAuthenticating](https://developer.android.com/reference/org/apache/http/client/params/HttpClientParams.html#setAuthenticating(org.apache.http.params.HttpParams,%20boolean))
        ///
        /// Required features: "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "org-apache-http-params-HttpParams")))]
        pub fn setAuthenticating<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "org/apache/http/client/params/HttpClientParams", java.flags == PUBLIC | STATIC, .name == "setAuthenticating", .descriptor == "(Lorg/apache/http/params/HttpParams;Z)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/client/params/HttpClientParams\0", "setAuthenticating\0", "(Lorg/apache/http/params/HttpParams;Z)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getCookiePolicy](https://developer.android.com/reference/org/apache/http/client/params/HttpClientParams.html#getCookiePolicy(org.apache.http.params.HttpParams))
        ///
        /// Required features: "java-lang-String", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-params-HttpParams")))]
        pub fn getCookiePolicy<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>) -> __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/client/params/HttpClientParams", java.flags == PUBLIC | STATIC, .name == "getCookiePolicy", .descriptor == "(Lorg/apache/http/params/HttpParams;)Ljava/lang/String;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/client/params/HttpClientParams\0", "getCookiePolicy\0", "(Lorg/apache/http/params/HttpParams;)Ljava/lang/String;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setCookiePolicy](https://developer.android.com/reference/org/apache/http/client/params/HttpClientParams.html#setCookiePolicy(org.apache.http.params.HttpParams,%20java.lang.String))
        ///
        /// Required features: "java-lang-String", "org-apache-http-params-HttpParams"
        #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "org-apache-http-params-HttpParams")))]
        pub fn setCookiePolicy<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::org::apache::http::params::HttpParams>>, arg1: 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/client/params/HttpClientParams", java.flags == PUBLIC | STATIC, .name == "setCookiePolicy", .descriptor == "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("org/apache/http/client/params/HttpClientParams\0", "setCookiePolicy\0", "(Lorg/apache/http/params/HttpParams;Ljava/lang/String;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}